diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-12-07 09:04:00 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-12-07 14:54:18 +0000 |
commit | f9f99c43fbea600f61d065b30a5453e95dfa6ade (patch) | |
tree | 038fc2abe32b84a4b8053fd37f0357c03d3f3e72 /src/quick/items | |
parent | 94e9fab2d81d076fd59a6a5a4d4ef093f37e05f9 (diff) |
QQuickAnimatorJob: store the target with a QPointer
This avoids ending up with invalid pointers when under some circumstances the
target (which is not owned by the QQuickAnimatorJob) is destroyed between the
time the QQuickAnimatorJob is created and the time it is initialized. This is
the case when the target of an Animator is the item loaded by a Loader and
that the animator is started just before setting the Loader to inactive.
Also added an auto test for that special case.
Task-number: QTBUG-49634
Change-Id: Iab9bfe76d13755ba735432c6f97bde175d308814
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quick/items')
0 files changed, 0 insertions, 0 deletions