summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qsharedpointer.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-08-06 14:17:44 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-12 09:12:35 (GMT)
commitc8563ec79f01ec54a03bb2fdbba11a73a01370f7 (patch)
treef21c3b44fa52a57fac48845bb0b56c4c1c2d1122 /src/corelib/tools/qsharedpointer.h
parentb3b2bc3f190d80e30b968648dd91048df67b8a50 (diff)
downloadQt-c8563ec79f01ec54a03bb2fdbba11a73a01370f7.zip
Qt-c8563ec79f01ec54a03bb2fdbba11a73a01370f7.tar.gz
Qt-c8563ec79f01ec54a03bb2fdbba11a73a01370f7.tar.bz2
Doc: explain the use of QWeakPointer for tracking QObjects
Explain the difference to QPointer and why QWeakPointer should be used instead. Reviewed-by: Trust Me
Diffstat (limited to 'src/corelib/tools/qsharedpointer.h')
-rw-r--r--src/corelib/tools/qsharedpointer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/tools/qsharedpointer.h b/src/corelib/tools/qsharedpointer.h
index e0fe3b1..332883a 100644
--- a/src/corelib/tools/qsharedpointer.h
+++ b/src/corelib/tools/qsharedpointer.h
@@ -115,6 +115,9 @@ public:
QWeakPointer<T> operator=(const QWeakPointer<T> &other);
QWeakPointer<T> operator=(const QSharedPointer<T> &other);
+ QWeakPointer(const QObject *other);
+ QWeakPointer<T> operator=(const QObject *other);
+
T *data() const;
void clear();