diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-27 11:43:29 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-27 11:44:56 (GMT) |
commit | 3192b8cec804e0c294a88e788392915e95faf435 (patch) | |
tree | c206d45d216fac5980f0b8882fbfc1d58a323d5d /src/corelib/animation/qpropertyanimation_p.h | |
parent | 3a35d00f7ee780ec3b36c8b959c1e3f964b0fb87 (diff) | |
download | Qt-3192b8cec804e0c294a88e788392915e95faf435.zip Qt-3192b8cec804e0c294a88e788392915e95faf435.tar.gz Qt-3192b8cec804e0c294a88e788392915e95faf435.tar.bz2 |
QPropertyAnimation: use of QWeakPointer instead of QObject::connect
Diffstat (limited to 'src/corelib/animation/qpropertyanimation_p.h')
-rw-r--r-- | src/corelib/animation/qpropertyanimation_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/animation/qpropertyanimation_p.h b/src/corelib/animation/qpropertyanimation_p.h index ffa6114..4c9360b 100644 --- a/src/corelib/animation/qpropertyanimation_p.h +++ b/src/corelib/animation/qpropertyanimation_p.h @@ -67,13 +67,13 @@ class QPropertyAnimationPrivate : public QVariantAnimationPrivate Q_DECLARE_PUBLIC(QPropertyAnimation) public: QPropertyAnimationPrivate() - : target(0), propertyType(0), propertyIndex(0), hasMetaProperty(false) + : targetValue(0), propertyType(0), propertyIndex(0), hasMetaProperty(false) { } - void _q_targetDestroyed(); - - QObject *target; + QWeakPointer<QObject> target; + //we use targetValue to be able to unregister the target from the global hash + QObject *targetValue; //for the QProperty QMetaProperty property; |