From 27da851843b12a2379f084d5e3e53a471bd188dd Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 18 Apr 2013 16:09:08 +0200 Subject: [PATCH] Allow disabling of component complete signal for the designer We emit the signal later in the designer. Change-Id: I5da4a2234467444446f168888a3ad3682f4ccc22 Reviewed-by: Marco Bubke Reviewed-by: Alan Alpert --- src/qml/qml/qqmlvme.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qml/qml/qqmlvme.cpp b/src/qml/qml/qqmlvme.cpp index c34b922..ad76b70 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; -- 2.7.4