aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-08-02 21:04:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-12 10:46:41 +0200
commit57a70efe4c54bbfc8109933503c45cc43127c6ad (patch)
treee53457212e4abd004e377c5bc9c54047a77c1d17 /src/quick/scenegraph/qsgdistancefieldglyphnode.cpp
parentf56b68b61c8ae021526c2d433961323b7e41032c (diff)
Support opt-in QSGNode descriptions without breaking binary compat.
This define is quite useful for debugging scene graph internals, but it is disabled by default to conserve memory. For clarity, I renamed the define to QSG_RUNTIME_DESCRIPTION. Change-Id: Ie5ff44d67af38adc65d0d09255d8533dc7a33bff Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgdistancefieldglyphnode.cpp')
-rw-r--r--src/quick/scenegraph/qsgdistancefieldglyphnode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp b/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp
index 1b10b8b894..1d36abe929 100644
--- a/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp
+++ b/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp
@@ -61,8 +61,8 @@ QSGDistanceFieldGlyphNode::QSGDistanceFieldGlyphNode(QSGContext *context)
m_geometry.setDrawingMode(GL_TRIANGLES);
setGeometry(&m_geometry);
setFlag(UsePreprocess);
-#ifdef QML_RUNTIME_TESTING
- description = QLatin1String("glyphs");
+#ifdef QSG_RUNTIME_DESCRIPTION
+ qsgnode_set_description(this, QLatin1String("glyphs"));
#endif
}