Add debug description to QSGDistanceFieldGlyphNode
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 29 Sep 2011 19:25:02 +0000 (21:25 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 4 Oct 2011 13:10:57 +0000 (15:10 +0200)
Change-Id: If66482f6e00bfade2da3b9067ff51ef782cd486e
Reviewed-on: http://codereview.qt-project.org/5849
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
src/declarative/scenegraph/qsgdistancefieldglyphnode.cpp

index cb3dab9..3586c9d 100644 (file)
@@ -60,6 +60,9 @@ QSGDistanceFieldGlyphNode::QSGDistanceFieldGlyphNode(QSGDistanceFieldGlyphCacheM
     m_geometry.setDrawingMode(GL_TRIANGLES);
     setGeometry(&m_geometry);
     setPreferredAntialiasingMode(cacheManager->defaultAntialiasingMode());
+#ifdef QML_RUNTIME_TESTING
+    description = QLatin1String("glyphs");
+#endif
 }
 
 QSGDistanceFieldGlyphNode::~QSGDistanceFieldGlyphNode()