mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 16:26:18 +00:00
Changed: #1193 Core::IContext does not factory.
This commit is contained in:
parent
cdd0e23021
commit
4015552e0d
2 changed files with 24 additions and 19 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "qnel_widget.h"
|
||||
#include "painter_dock_widget.h"
|
||||
#include <QtGui/QMenu>
|
||||
|
||||
ZonePainterMainWindow::ZonePainterMainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
|
|
|
@ -79,25 +79,29 @@ class CZonePainterContext: public Core::IContext
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CZonePainterContext(QObject *parent = 0): IContext(parent) {}
|
||||
virtual ~CZonePainterContext() {}
|
||||
|
||||
virtual QString id() const
|
||||
{
|
||||
return QLatin1String("ZonePainterContext");
|
||||
}
|
||||
virtual QString trName() const
|
||||
{
|
||||
return tr("Zone Painter");
|
||||
}
|
||||
virtual QIcon icon() const
|
||||
{
|
||||
return QIcon();
|
||||
}
|
||||
virtual QWidget *widget()
|
||||
{
|
||||
return new ZonePainterMainWindow();
|
||||
}
|
||||
CZonePainterContext(QObject *parent = 0): IContext(parent)
|
||||
{
|
||||
m_zonePainterMainWindow = new ZonePainterMainWindow();
|
||||
}
|
||||
virtual ~CZonePainterContext() {}
|
||||
|
||||
virtual QString id() const
|
||||
{
|
||||
return QLatin1String("ZonePainterContext");
|
||||
}
|
||||
virtual QString trName() const
|
||||
{
|
||||
return tr("Zone Painter");
|
||||
}
|
||||
virtual QIcon icon() const
|
||||
{
|
||||
return QIcon();
|
||||
}
|
||||
virtual QWidget *widget()
|
||||
{
|
||||
return m_zonePainterMainWindow;
|
||||
}
|
||||
ZonePainterMainWindow *m_zonePainterMainWindow;
|
||||
};
|
||||
|
||||
} // namespace Plugin
|
||||
|
|
Loading…
Reference in a new issue