diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-09-14 14:41:18 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 14:26:20 +0200 |
commit | 269e29fdf36dd700d8c985dc7f11dbb5c8746c51 (patch) | |
tree | dde17b25e0111dcf3e6783f1ab07982a247b35e7 /src/qml/qml/qqmlengine_p.h | |
parent | b4b4a646800fabbb31b4b261ea4b802d78d6501f (diff) |
[new compiler] Add support for finalization callbacks
This is needed for Component.onCompleted (the signal emission) as well
as the private finalization callback API in QQmlEngine, used by QtQuick.
The creator - similar to the VME - tracks the attached properties object
of QQmlComponent through a linked list.
Change-Id: I8ada94009a7ce2078feefd359485657626c300fb
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlengine_p.h')
-rw-r--r-- | src/qml/qml/qqmlengine_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h index b57c84ceae..c67e45a833 100644 --- a/src/qml/qml/qqmlengine_p.h +++ b/src/qml/qml/qqmlengine_p.h @@ -99,6 +99,7 @@ class QQmlCleanup; class QQmlDelayedError; class QQuickWorkerScriptEngine; class QQmlVME; +class QmlObjectCreator; class QDir; class QQmlIncubator; @@ -166,7 +167,11 @@ public: typedef QPair<QPointer<QObject>,int> FinalizeCallback; void registerFinalizeCallback(QObject *obj, int index); + // --- old compiler: QQmlVME *activeVME; + // --- new compiler: + QmlObjectCreator *activeObjectCreator; + // --- QNetworkAccessManager *createNetworkAccessManager(QObject *parent) const; QNetworkAccessManager *getNetworkAccessManager() const; |