aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvme_p.h
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2013-04-09 12:54:09 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-11 08:50:58 +0200
commit1a1ce4326c55f0af9acb3d3b42d70040bbe45673 (patch)
tree27f3282bad67967be381850bb4ae54fdef643169 /src/qml/qml/qqmlvme_p.h
parentcbd82ea95ea70b4561c1b019e78a9bc4aaf1e5ee (diff)
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 <marco.bubke@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvme_p.h')
-rw-r--r--src/qml/qml/qqmlvme_p.h6
1 files changed, 6 insertions, 0 deletions
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<QQmlError> *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<QQmlParserStatus *> &);
static void blank(QFiniteStack<QQmlAbstractBinding *> &);
+
+ static bool s_enableComponentComplete;
};
// Used to check that a QQmlVME that is interrupted mid-execution