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>
This commit is contained in:
Marco Bubke
2021-04-14 12:37:43 +02:00
parent 7eb9d8cb60
commit 2e8e47622c
21 changed files with 56 additions and 40 deletions

View File

@@ -513,16 +513,13 @@ void DebugView::currentStateChanged(const ModelNode &/*node*/)
}
void DebugView::nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &movedNode, int oldIndex)
void DebugView::nodeOrderChanged(const NodeListProperty &listProperty)
{
if (isDebugViewEnabled()) {
QTextStream message;
QString string;
message.setString(&string);
message << movedNode << listProperty;
message << oldIndex << "to" << listProperty.indexOf(movedNode);
log("::nodeSlide:", string);
}
}