diff options
author | Marco Bubke <marco.bubke@digia.com> | 2012-11-22 11:28:57 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-22 12:34:41 +0100 |
commit | 8fc95e65e77328c995ef4a3a633a95c86f5e0bdf (patch) | |
tree | c36f38de6625c04b1ab51e08f8f9e7e78dc1fa1f /src/qml/qml/qqmlengine_p.h | |
parent | c2a6e7276dfce6142202ee9db4aaaf15a53cb530 (diff) |
Add designer support for animations and componentComplete
In the designer animations confuse users, if you change a state or move a
item around. Also component complete is called later by the designer.
The call in the VME is to early.
Change-Id: I49aa04edbc49fb44ddb7b52062307982865efd7e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlengine_p.h')
-rw-r--r-- | src/qml/qml/qqmlengine_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h index cc07ee5a2e..4f1ab84104 100644 --- a/src/qml/qml/qqmlengine_p.h +++ b/src/qml/qml/qqmlengine_p.h @@ -265,6 +265,9 @@ public: static void registerQtQuick2Types(const char *uri, int versionMajor, int versionMinor); static void defineQtQuick2Module(); + static bool designerMode(); + static void activateDesignerMode(); + static bool qml_debugging_enabled; mutable QMutex mutex; @@ -305,6 +308,7 @@ private: QHash<int, int> m_qmlLists; QHash<int, QQmlCompiledData *> m_compositeTypes; QHash<QUrl, QByteArray> debugChangesHash; + static bool s_designerMode; // These members is protected by the full QQmlEnginePrivate::mutex mutex struct Deletable { Deletable():next(0) {} virtual ~Deletable() {} Deletable *next; }; |