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

This commit is contained in:
dnk-88 2011-04-19 10:39:09 +03:00
parent 870308c754
commit ad597cc457
2 changed files with 24 additions and 19 deletions

View file

@ -3,6 +3,7 @@
#include "qnel_widget.h"
#include "painter_dock_widget.h"
#include <QtGui/QMenu>
ZonePainterMainWindow::ZonePainterMainWindow(QWidget *parent) :
QMainWindow(parent),

View file

@ -79,7 +79,10 @@ class CZonePainterContext: public Core::IContext
{
Q_OBJECT
public:
CZonePainterContext(QObject *parent = 0): IContext(parent) {}
CZonePainterContext(QObject *parent = 0): IContext(parent)
{
m_zonePainterMainWindow = new ZonePainterMainWindow();
}
virtual ~CZonePainterContext() {}
virtual QString id() const
@ -96,8 +99,9 @@ public:
}
virtual QWidget *widget()
{
return new ZonePainterMainWindow();
return m_zonePainterMainWindow;
}
ZonePainterMainWindow *m_zonePainterMainWindow;
};
} // namespace Plugin