diff options
author | Marco Bubke <marco.bubke@digia.com> | 2013-09-18 13:36:51 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@digia.com> | 2013-09-18 13:58:19 +0200 |
commit | 91cb9b04747145d71a11ccdef79dd927d6e3966a (patch) | |
tree | 04db77922c0b2ede311f90bb212053ad91c32e8c | |
parent | 5e85fc175e9818bef92b4b16edbc1668b934bf59 (diff) | |
download | qt-creator-91cb9b04747145d71a11ccdef79dd927d6e3966a.tar.gz |
QmlDesigner: Remove StatesEditorWidget in StatesEditorView
Change-Id: I2d858ed2cd90f8e4297114cc47502b5a8d57f638
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
-rw-r--r-- | src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp | 5 | ||||
-rw-r--r-- | src/plugins/qmldesigner/components/stateseditor/stateseditorview.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp index 772875365b..677d79d20f 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp @@ -58,6 +58,11 @@ StatesEditorView::StatesEditorView(QObject *parent) : // base state } +StatesEditorView::~StatesEditorView() +{ + delete m_statesEditorWidget.data(); +} + WidgetInfo StatesEditorView::widgetInfo() { if (!m_statesEditorWidget) diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h index aa2088703a..9dc83d08bd 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h @@ -45,6 +45,7 @@ class StatesEditorView : public AbstractView { public: explicit StatesEditorView(QObject *parent = 0); + ~StatesEditorView(); void renameState(int nodeId,const QString &newName); bool validStateName(const QString &name) const; |