From 8fc95e65e77328c995ef4a3a633a95c86f5e0bdf Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 22 Nov 2012 11:28:57 +0100 Subject: 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 --- src/quick/util/qquickbehavior.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/util/qquickbehavior.cpp') diff --git a/src/quick/util/qquickbehavior.cpp b/src/quick/util/qquickbehavior.cpp index 4ea11c46b4..9f9ea67992 100644 --- a/src/quick/util/qquickbehavior.cpp +++ b/src/quick/util/qquickbehavior.cpp @@ -175,7 +175,7 @@ void QQuickBehavior::setEnabled(bool enabled) void QQuickBehavior::write(const QVariant &value) { Q_D(QQuickBehavior); - bool bypass = !d->enabled || !d->finalized; + bool bypass = !d->enabled || !d->finalized || QQmlEnginePrivate::designerMode(); if (!bypass) qmlExecuteDeferred(this); if (!d->animation || bypass) { -- cgit v1.2.3