diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-14 03:42:55 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-14 03:42:55 (GMT) |
commit | 8e466a30af34c5bb83e7fc591ddf569e2ec79d9f (patch) | |
tree | 8c509407be0474dea2993486afc03dccd84ec822 /src/declarative/qml/qmlcontext_p.h | |
parent | c71d7b264cb55bb444cea90e1efa82f0243f566d (diff) | |
download | Qt-8e466a30af34c5bb83e7fc591ddf569e2ec79d9f.zip Qt-8e466a30af34c5bb83e7fc591ddf569e2ec79d9f.tar.gz Qt-8e466a30af34c5bb83e7fc591ddf569e2ec79d9f.tar.bz2 |
Introduce experimental binding optimizer
Enable with QML_EXPERIMENTAL=1
Diffstat (limited to 'src/declarative/qml/qmlcontext_p.h')
-rw-r--r-- | src/declarative/qml/qmlcontext_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcontext_p.h b/src/declarative/qml/qmlcontext_p.h index 0229056..35971d9 100644 --- a/src/declarative/qml/qmlcontext_p.h +++ b/src/declarative/qml/qmlcontext_p.h @@ -130,7 +130,9 @@ public: static QmlContextPrivate *get(QmlContext *context) { return static_cast<QmlContextPrivate *>(QObjectPrivate::get(context)); } - + static QmlContext *get(QmlContextPrivate *context) { + return static_cast<QmlContext *>(context->q_func()); + } // Only used for debugging QList<QPointer<QObject> > instances; }; |