Changed: #1193 Core::IContext is not factory.

This commit is contained in:
dnk-88 2011-04-19 02:40:39 +03:00
parent 8d42a10f4c
commit 870308c754

View file

@ -62,7 +62,11 @@ class CExampleContext: public Core::IContext
{
Q_OBJECT
public:
CExampleContext(QObject *parent = 0): IContext(parent) {}
CExampleContext(QObject *parent = 0): IContext(parent)
{
m_simpleViewer = new CSimpleViewer();
}
virtual ~CExampleContext() {}
virtual QString id() const
@ -79,8 +83,10 @@ public:
}
virtual QWidget *widget()
{
return new CSimpleViewer();
return m_simpleViewer;
}
CSimpleViewer *m_simpleViewer;
};
} // namespace Plugin