summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2011-03-23 14:27:03 +0100
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2011-03-23 14:27:36 +0100
commit37433e2be091714022adad71a4c207e40f4c98d8 (patch)
tree17250e8a22d0f2b5e233d92a23be2ad426a85cb8 /src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
parentf97c7e1409b544b0f91ae2f4f18d37ef04bc7c96 (diff)
downloadqt-creator-37433e2be091714022adad71a4c207e40f4c98d8.tar.gz
QmlDesigner: fixes state editing in text
In the stateseditor we have to use propertiesRemoved instead of propertiesAboutToBeRemoved when reseting the model. Otherwise the change we want to react to has not happened, yet. Some sanity checking in the property editor. In the DesignDocumentController we slightly change the order. The textMoifider is activated (again) before we set back the old state. Note: We do check for isValid() since the rewriter might delete the state. Reviewed-by: Kai Koehne Task-number: QTCREATORBUG-4199
Diffstat (limited to 'src/plugins/qmldesigner/components/stateseditor/stateseditorview.h')
-rw-r--r--src/plugins/qmldesigner/components/stateseditor/stateseditorview.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
index e09fe0d3a1..58b31ea083 100644
--- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
+++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
@@ -57,7 +57,7 @@ public:
// AbstractView
void modelAttached(Model *model);
void modelAboutToBeDetached(Model *model);
- void propertiesAboutToBeRemoved(const QList<AbstractProperty>& propertyList);
+ void propertiesRemoved(const QList<AbstractProperty>& propertyList);
void variantPropertiesChanged(const QList<VariantProperty>& propertyList, PropertyChangeFlags propertyChange);
void nodeAboutToBeRemoved(const ModelNode &removedNode);