aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvme.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2013-04-18 16:09:08 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-20 15:10:19 +0200
commit27da851843b12a2379f084d5e3e53a471bd188dd (patch)
tree85badd64cffea8d57972a393b9039611ccdceb9a /src/qml/qml/qqmlvme.cpp
parent21e162d410a9b5bbb2c3a3e07e004a1a586a1d4f (diff)
Allow disabling of component complete signal for the designer
We emit the signal later in the designer. Change-Id: I5da4a2234467444446f168888a3ad3682f4ccc22 Reviewed-by: Marco Bubke <marco.bubke@digia.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/qml/qml/qqmlvme.cpp')
-rw-r--r--src/qml/qml/qqmlvme.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlvme.cpp b/src/qml/qml/qqmlvme.cpp
index c34b922ab7..ad76b702ce 100644
--- a/src/qml/qml/qqmlvme.cpp
+++ b/src/qml/qml/qqmlvme.cpp
@@ -1376,7 +1376,8 @@ QQmlContextData *QQmlVME::complete(const Interrupt &interrupt)
Q_ASSERT(d);
Q_ASSERT(d->context);
a->add(&d->context->componentAttached);
- emit a->completed();
+ if (componentCompleteEnabled())
+ emit a->completed();
if (watcher.hasRecursed() || interrupt.shouldInterrupt())
return 0;