forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user