QmlDesigner: Add more logging to DebugView

Change-Id: I4f95794b298fa7a3d16c882751c75f0a2e4c9247
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-03-07 17:37:23 +01:00
parent a86660ba80
commit d42c35ab07

View File

@@ -31,6 +31,7 @@
#include <bindingproperty.h>
#include <signalhandlerproperty.h>
#include <nodeabstractproperty.h>
#include <nodelistproperty.h>
#include <variantproperty.h>
#include <qmlitemnode.h>
@@ -455,9 +456,18 @@ void DebugView::currentStateChanged(const ModelNode &/*node*/)
}
void DebugView::nodeOrderChanged(const NodeListProperty &/*listProperty*/, const ModelNode &/*movedNode*/, int /*oldIndex*/)
void DebugView::nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &movedNode, int oldIndex)
{
if (isDebugViewEnabled()) {
QTextStream message;
QString string;
message.setString(&string);
message << movedNode << listProperty;
message << oldIndex << "to" << listProperty.indexOf(movedNode);
log("::nodeSlide:", string);
}
}
void DebugView::log(const QString &title, const QString &message, bool highlight)