diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-06 10:28:53 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-11 12:48:19 +0000 |
commit | 084dbb06d7b00c4a67edb6ce58956150036c35f2 (patch) | |
tree | 2a43e4a1db019fee4e869b69669bb463500aff1f /src/particles/qquickparticleemitter.cpp | |
parent | 983a85e2222c0ed8e3e9bc0a8d03c28889952331 (diff) |
Fix Animators in itemview and positioner transitions
In itemview/positioner transitions, Animator's target-property is never
explicitly set. QQuickItemViewTransition passes the animation target as
a "default target" instead. This change adds missing handling for the
default target.
QQuickItemViewTransition sets up default "x" and "y" state actions.
If Animator drives opacity, scale, or basically anything else than x/y
animations, it failed to extract the from/to values from the state
action list.
This change fixes the issue that if the default state actions do not
match the animator property (x/y vs. scale/opacity), it uses from/to
values specified on the animator itself. Before, it did that only if
the default state action list was empty. This is not the case with
itemview/positioner transitions.
Change-Id: I0f15e20bc860ddec23e59efebbc9cd346317f4de
Task-number: QTBUG-50908
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/particles/qquickparticleemitter.cpp')
0 files changed, 0 insertions, 0 deletions