summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qpropertyanimation.h
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-05-20 09:42:25 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-05-20 09:42:25 (GMT)
commitc21803201a607dabc1d5a9345004d8f5dbc02d25 (patch)
tree3996719e27e7b839b6dbeae9c77575cf0f9c0cf4 /src/corelib/animation/qpropertyanimation.h
parent6501f21efeb9fb327be60b8d069cfad5f19f9ff7 (diff)
downloadQt-c21803201a607dabc1d5a9345004d8f5dbc02d25.zip
Qt-c21803201a607dabc1d5a9345004d8f5dbc02d25.tar.gz
Qt-c21803201a607dabc1d5a9345004d8f5dbc02d25.tar.bz2
Fix an issue that made appear warnings when the target of a property
animation was destroyed The problem was that we were not really detecting when the target was destroyed. So we weren't able to unregister it from the global internal hash we have in QPropertyAnimation. This happens if an animation is running and the target object is destroyed.
Diffstat (limited to 'src/corelib/animation/qpropertyanimation.h')
-rw-r--r--src/corelib/animation/qpropertyanimation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/animation/qpropertyanimation.h b/src/corelib/animation/qpropertyanimation.h
index dbd118c..5b06bd2 100644
--- a/src/corelib/animation/qpropertyanimation.h
+++ b/src/corelib/animation/qpropertyanimation.h
@@ -75,6 +75,7 @@ protected:
void updateCurrentValue(const QVariant &value);
void updateState(QAbstractAnimation::State oldState, QAbstractAnimation::State newState);
+ Q_PRIVATE_SLOT(d_func(), void _q_targetDestroyed());
private:
Q_DISABLE_COPY(QPropertyAnimation)
Q_DECLARE_PRIVATE(QPropertyAnimation)