From 4015552e0d5999fedb57f42a48c25cb2f6859ea5 Mon Sep 17 00:00:00 2001 From: dnk-88 Date: Tue, 19 Apr 2011 10:39:09 +0300 Subject: [PATCH] Changed: #1193 Core::IContext does not factory. --- .../zone_painter/zone_painter_main_window.cpp | 1 + .../zone_painter/zone_painter_plugin.h | 42 ++++++++++--------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.cpp index c187e2ddc..02197adf1 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.cpp @@ -3,6 +3,7 @@ #include "qnel_widget.h" #include "painter_dock_widget.h" +#include ZonePainterMainWindow::ZonePainterMainWindow(QWidget *parent) : QMainWindow(parent), diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h index 7cb6b9c43..aeae39ba6 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h @@ -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