summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/controls/Private/qquickstyleitem.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/controls/Private/qquickstyleitem.cpp b/src/controls/Private/qquickstyleitem.cpp
index 02b7a5e36..50a48f0e2 100644
--- a/src/controls/Private/qquickstyleitem.cpp
+++ b/src/controls/Private/qquickstyleitem.cpp
@@ -1470,6 +1470,14 @@ QSGNode *QQuickStyleItem::updatePaintNode(QSGNode *node, UpdatePaintNodeData *)
if (!styleNode)
styleNode = new QQuickStyleNode;
+#ifdef QSG_RUNTIME_DESCRIPTION
+ qsgnode_set_description(styleNode,
+ QString::fromLatin1("%1:%2, '%3'")
+ .arg(style())
+ .arg(elementType())
+ .arg(text()));
+#endif
+
styleNode->setTexture(window()->createTextureFromImage(m_image, QQuickWindow::TextureCanUseAtlas));
styleNode->setRect(boundingRect());
return styleNode;