forked from qt-creator/qt-creator
QmlDesigner: Add more logging to DebugView
Change-Id: I4f95794b298fa7a3d16c882751c75f0a2e4c9247 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include <bindingproperty.h>
|
#include <bindingproperty.h>
|
||||||
#include <signalhandlerproperty.h>
|
#include <signalhandlerproperty.h>
|
||||||
#include <nodeabstractproperty.h>
|
#include <nodeabstractproperty.h>
|
||||||
|
#include <nodelistproperty.h>
|
||||||
#include <variantproperty.h>
|
#include <variantproperty.h>
|
||||||
|
|
||||||
#include <qmlitemnode.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)
|
void DebugView::log(const QString &title, const QString &message, bool highlight)
|
||||||
|
Reference in New Issue
Block a user