summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qpropertyanimation_p.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_p.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_p.h')
-rw-r--r--src/corelib/animation/qpropertyanimation_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/animation/qpropertyanimation_p.h b/src/corelib/animation/qpropertyanimation_p.h
index 9d9dd31..b51d039 100644
--- a/src/corelib/animation/qpropertyanimation_p.h
+++ b/src/corelib/animation/qpropertyanimation_p.h
@@ -55,7 +55,6 @@
#include "qpropertyanimation.h"
#include <QtCore/qmetaobject.h>
-#include <QtCore/qpointer.h>
#include "qvariantanimation_p.h"
@@ -70,7 +69,9 @@ public:
{
}
- QPointer<QObject> target;
+ void _q_targetDestroyed();
+
+ QObject *target;
//for the QProperty
QMetaProperty property;