Add node description to painted items.
authorGunnar Sletta <gunnar.sletta@jollamobile.com>
Thu, 12 Jun 2014 08:07:59 +0000 (10:07 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 12 Jun 2014 11:23:51 +0000 (13:23 +0200)
Change-Id: I47ad9df1550649131ac5379acbf7d133088c60a8
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
src/quick/scenegraph/util/qsgpainternode.cpp

index b454f66..5a397e9 100644 (file)
@@ -116,6 +116,10 @@ QSGPainterNode::QSGPainterNode(QQuickPaintedItem *item)
     setMaterial(&m_materialO);
     setOpaqueMaterial(&m_material);
     setGeometry(&m_geometry);
+
+#ifdef QSG_RUNTIME_DESCRIPTION
+    qsgnode_set_description(this, QString::fromLatin1("QQuickPaintedItem(%1):%2").arg(QString::fromLatin1(item->metaObject()->className())).arg(item->objectName()));
+#endif
 }
 
 QSGPainterNode::~QSGPainterNode()