From 1a1ce4326c55f0af9acb3d3b42d70040bbe45673 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 9 Apr 2013 12:54:09 +0200 Subject: DesignerSupport: Adding separate flag for component completion The designer should only disable completion of components if the component is created directly by the designer. Change-Id: Id86d2b2f2e61355240bdbbb7875db3e97fb0da17 Reviewed-by: Marco Bubke --- src/qml/qml/qqmlvme_p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qml/qml/qqmlvme_p.h') diff --git a/src/qml/qml/qqmlvme_p.h b/src/qml/qml/qqmlvme_p.h index 62ba47f7ad..405a83c4fe 100644 --- a/src/qml/qml/qqmlvme_p.h +++ b/src/qml/qml/qqmlvme_p.h @@ -140,6 +140,10 @@ public: QObject *execute(QList *errors, const Interrupt & = Interrupt()); QQmlContextData *complete(const Interrupt & = Interrupt()); + static void enableComponentComplete(); + static void disableComponentComplete(); + static bool componentCompleteEnabled(); + private: friend class QQmlVMEGuard; @@ -179,6 +183,8 @@ private: static void blank(QFiniteStack &); static void blank(QFiniteStack &); + + static bool s_enableComponentComplete; }; // Used to check that a QQmlVME that is interrupted mid-execution -- cgit v1.2.3