diff options
author | Antti Määttä <antti.maatta@qt.io> | 2021-11-12 09:44:16 +0200 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2021-11-12 13:24:30 +0200 |
commit | e0db57f9d07f47e1fefdd0c6f507e32308e4041c (patch) | |
tree | 9f76f05fc6af8a6e3f0627f10bbb84a5a780afd3 /src/quick/designer | |
parent | e48a70fa37412dbd730654252db3fe89e25c5060 (diff) |
Do not reset loops when creating designer objects
Fix looping in designer particle editor when the particle system is in
sub-component. When it is not in sub-component, the editor resets the loops,
but not when it is in sub-component.
Fixes: QDS-5481
Pick-to: 6.2
Change-Id: I81b392d95c2928244f91f00e0a93853356e1c287
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/quick/designer')
-rw-r--r-- | src/quick/designer/qquickdesignersupportitems.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/designer/qquickdesignersupportitems.cpp b/src/quick/designer/qquickdesignersupportitems.cpp index 862b57f2b7..8a45209363 100644 --- a/src/quick/designer/qquickdesignersupportitems.cpp +++ b/src/quick/designer/qquickdesignersupportitems.cpp @@ -72,7 +72,6 @@ static void stopAnimation(QObject *object) // QQuickScriptAction *scriptAimation = qobject_cast<QQuickScriptAction*>(animation); // if (scriptAimation) FIXME // scriptAimation->setScript(QQmlScriptString()); - animation->setLoops(1); animation->complete(); animation->setDisableUserControl(); } else if (timer) { |