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/scenegraph/coreapi/qsgnode.h | |
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/scenegraph/coreapi/qsgnode.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgnode.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgnode.h b/src/quick/scenegraph/coreapi/qsgnode.h index d83e6bcc81..26af56f3d0 100644 --- a/src/quick/scenegraph/coreapi/qsgnode.h +++ b/src/quick/scenegraph/coreapi/qsgnode.h @@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE -//#define QML_RUNTIME_TESTING +// #define QSG_RUNTIME_DESCRIPTION class QSGRenderer; @@ -146,10 +146,6 @@ public: virtual void preprocess() { } -#ifdef QML_RUNTIME_TESTING - QString description; -#endif - protected: QSGNode(NodeType type); QSGNode(QSGNodePrivate &dd, NodeType type); @@ -172,9 +168,15 @@ private: DirtyState m_dirtyState; protected: + friend class QSGNodePrivate; + QScopedPointer<QSGNodePrivate> d_ptr; }; +#ifdef QSG_RUNTIME_DESCRIPTION +void qsgnode_set_description(QSGNode *node, const QString &description); +#endif + class Q_QUICK_EXPORT QSGBasicGeometryNode : public QSGNode { public: |