diff options
author | Marco Bubke <marco.bubke@digia.com> | 2012-11-22 11:28:57 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-22 12:34:41 +0100 |
commit | 8fc95e65e77328c995ef4a3a633a95c86f5e0bdf (patch) | |
tree | c36f38de6625c04b1ab51e08f8f9e7e78dc1fa1f /src/quick/util/qquickbehavior.cpp | |
parent | c2a6e7276dfce6142202ee9db4aaaf15a53cb530 (diff) |
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 <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/quick/util/qquickbehavior.cpp')
-rw-r--r-- | src/quick/util/qquickbehavior.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |