diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-08-02 21:04:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-12 10:46:41 +0200 |
commit | 57a70efe4c54bbfc8109933503c45cc43127c6ad (patch) | |
tree | e53457212e4abd004e377c5bc9c54047a77c1d17 /src/quick/items/qquicktextnode.cpp | |
parent | f56b68b61c8ae021526c2d433961323b7e41032c (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/items/qquicktextnode.cpp')
-rw-r--r-- | src/quick/items/qquicktextnode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquicktextnode.cpp b/src/quick/items/qquicktextnode.cpp index d8040a1110..d3a566f336 100644 --- a/src/quick/items/qquicktextnode.cpp +++ b/src/quick/items/qquicktextnode.cpp @@ -83,8 +83,8 @@ namespace { QQuickTextNode::QQuickTextNode(QSGContext *context, QQuickItem *ownerElement) : m_context(context), m_cursorNode(0), m_ownerElement(ownerElement), m_useNativeRenderer(false) { -#if defined(QML_RUNTIME_TESTING) - description = QLatin1String("text"); +#ifdef QSG_RUNTIME_DESCRIPTION + qsgnode_set_description(this, QLatin1String("text")); #endif } |