aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/designercore/include/forwardview.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2021-04-14 12:37:43 +0200
committerMarco Bubke <marco.bubke@qt.io>2021-04-19 12:25:02 +0000
commit2e8e47622c556d5383e1157737ff191dd91bf9e6 (patch)
tree3d40dff9a5f01fa8b6029cf0edecb6c7e41f0e43 /src/plugins/qmldesigner/designercore/include/forwardview.h
parent7eb9d8cb60da9e32a194408ed535d0ab35fda84a (diff)
QmlDesigner: Split nodeOrderChanged notifier
For swap we cannot provide all the arguments and they are only used in the rewriter. So we use now a simplified notifier for all views except the rewriter view. After the introduction of the new rewriter we can remove the old notifier. Task-number: QDS-4159 Change-Id: Idc91a618ea40da0bda9856888d115a84016597d5 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/designercore/include/forwardview.h')
-rw-r--r--src/plugins/qmldesigner/designercore/include/forwardview.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/qmldesigner/designercore/include/forwardview.h b/src/plugins/qmldesigner/designercore/include/forwardview.h
index 8d4406b6d2..5b46204091 100644
--- a/src/plugins/qmldesigner/designercore/include/forwardview.h
+++ b/src/plugins/qmldesigner/designercore/include/forwardview.h
@@ -65,7 +65,7 @@ public:
void fileUrlChanged(const QUrl &oldUrl, const QUrl &newUrl) override;
- void nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &movedNode, int oldIndex) override;
+ void nodeOrderChanged(const NodeListProperty &listProperty) override;
void importsChanged(const QList<Import> &addedImports, const QList<Import> &removedImports) override;
void auxiliaryDataChanged(const ModelNode &node, const PropertyName &name, const QVariant &data) override;
@@ -211,12 +211,11 @@ void ForwardView<ViewType>::fileUrlChanged(const QUrl &oldUrl, const QUrl &newUr
view->fileUrlChanged(oldUrl, newUrl);
}
-template <class ViewType>
-void ForwardView<ViewType>::nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &movedNode, int oldIndex)
+template<class ViewType>
+void ForwardView<ViewType>::nodeOrderChanged(const NodeListProperty &listProperty)
{
foreach (const ViewTypePointer &view, m_targetViewList)
- view->nodeOrderChanged(NodeListProperty(listProperty, view.data()),
- ModelNode(movedNode, view.data()), oldIndex);
+ view->nodeOrderChanged(NodeListProperty(listProperty, view.data()));
}
template <class ViewType>