diff options
Diffstat (limited to 'src/corelib/animation')
-rw-r--r-- | src/corelib/animation/qabstractanimation.cpp | 2 | ||||
-rw-r--r-- | src/corelib/animation/qpropertyanimation_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp index 969a54775b..e56d1e26d3 100644 --- a/src/corelib/animation/qabstractanimation.cpp +++ b/src/corelib/animation/qabstractanimation.cpp @@ -925,7 +925,7 @@ void QAbstractAnimationPrivate::setState(QAbstractAnimation::State newState) } state = newState; - QWeakPointer<QAbstractAnimation> guard(q); + QPointer<QAbstractAnimation> guard(q); //(un)registration of the animation must always happen before calls to //virtual function (updateState) to ensure a correct state of the timer diff --git a/src/corelib/animation/qpropertyanimation_p.h b/src/corelib/animation/qpropertyanimation_p.h index c413c683ff..d6c0f9057c 100644 --- a/src/corelib/animation/qpropertyanimation_p.h +++ b/src/corelib/animation/qpropertyanimation_p.h @@ -70,7 +70,7 @@ public: { } - QWeakPointer<QObject> target; + QPointer<QObject> target; //we use targetValue to be able to unregister the target from the global hash QObject *targetValue; |