summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-01-12 10:39:40 +0100
committerKai Koehne <kai.koehne@nokia.com>2010-01-12 13:59:35 +0100
commit45f8895e932e8b07b5848cacca185daa1f76ed4f (patch)
treef2e2d63fe9082a482725ae636b1a74f35cd67102 /src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
parent2e36b9a34a00f0050d2c2db7b98efb5f3fd94f07 (diff)
downloadqt-creator-45f8895e932e8b07b5848cacca185daa1f76ed4f.tar.gz
Change signature of AbstractView::nodeSlidedToIndex in QmlDesigner
The usage of 'int newIndex' was ambiguous in the case of oldIndex < newIndex. Solved by directly passing the ModelNode that was moved around. 'nodeSlidedToIndex' was also renamed to 'nodeOrderChanged', since 'Slided' is no proper English.
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 284d939fb0..4f91cd0f7f 100644
--- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
+++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h
@@ -64,7 +64,7 @@ public:
void nodeAboutToBeRemoved(const ModelNode &removedNode);
void nodeReparented(const ModelNode &node, const NodeAbstractProperty &newPropertyParent, const NodeAbstractProperty &oldPropertyParent, AbstractView::PropertyChangeFlags propertyChange);
- void nodeSlidedToIndex(const NodeListProperty &listProperty, int newIndex, int oldIndex);
+ void nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &movedNode, int oldIndex);
// QmlModelView
void stateChanged(const QmlModelState &newQmlModelState, const QmlModelState &oldQmlModelState);