mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-20 06:06:13 +00:00
Changed: #1193 Core::IContext is not factory.
This commit is contained in:
parent
273bda23e2
commit
cdd0e23021
1 changed files with 8 additions and 2 deletions
|
@ -62,7 +62,11 @@ class CExampleContext: public Core::IContext
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CExampleContext(QObject *parent = 0): IContext(parent) {}
|
CExampleContext(QObject *parent = 0): IContext(parent)
|
||||||
|
{
|
||||||
|
m_simpleViewer = new CSimpleViewer();
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~CExampleContext() {}
|
virtual ~CExampleContext() {}
|
||||||
|
|
||||||
virtual QString id() const
|
virtual QString id() const
|
||||||
|
@ -79,8 +83,10 @@ public:
|
||||||
}
|
}
|
||||||
virtual QWidget *widget()
|
virtual QWidget *widget()
|
||||||
{
|
{
|
||||||
return new CSimpleViewer();
|
return m_simpleViewer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CSimpleViewer *m_simpleViewer;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Plugin
|
} // namespace Plugin
|
||||||
|
|
Loading…
Reference in a new issue