diff options
author | David Boddie <dboddie@trolltech.com> | 2010-08-24 14:08:28 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-08-24 14:08:28 (GMT) |
commit | c408dd8a80d509f18ec3c3bc8a74891f541f6fdd (patch) | |
tree | a29369b3d1e03f8f688b128e231c004081028bb6 /src/gui/kernel/qwidget_p.h | |
parent | ef9cc109f1a6fe84ca27a6c8a53f1783b8bdf14d (diff) | |
parent | a8030e0c543e538652605557843b845f89b11589 (diff) | |
download | Qt-c408dd8a80d509f18ec3c3bc8a74891f541f6fdd.zip Qt-c408dd8a80d509f18ec3c3bc8a74891f541f6fdd.tar.gz Qt-c408dd8a80d509f18ec3c3bc8a74891f541f6fdd.tar.bz2 |
Merge branch '4.7' into qmldocs
Diffstat (limited to 'src/gui/kernel/qwidget_p.h')
-rw-r--r-- | src/gui/kernel/qwidget_p.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gui/kernel/qwidget_p.h b/src/gui/kernel/qwidget_p.h index 587d7fb..4a79dc7 100644 --- a/src/gui/kernel/qwidget_p.h +++ b/src/gui/kernel/qwidget_p.h @@ -110,17 +110,18 @@ class QWidgetItemV2; class QStyle; -class Q_AUTOTEST_EXPORT QRefCountedWidgetBackingStore +class Q_AUTOTEST_EXPORT QWidgetBackingStoreTracker { + public: - QRefCountedWidgetBackingStore(); - ~QRefCountedWidgetBackingStore(); + QWidgetBackingStoreTracker(); + ~QWidgetBackingStoreTracker(); void create(QWidget *tlw); void destroy(); - void ref(); - void deref(); + void registerWidget(QWidget *w); + void unregisterWidget(QWidget *w); inline QWidgetBackingStore* data() { @@ -143,11 +144,11 @@ public: } private: - Q_DISABLE_COPY(QRefCountedWidgetBackingStore) + Q_DISABLE_COPY(QWidgetBackingStoreTracker) private: QWidgetBackingStore* m_ptr; - int m_count; + QSet<QWidget *> m_widgets; }; struct QTLWExtra { @@ -156,7 +157,7 @@ struct QTLWExtra { // Regular pointers (keep them together to avoid gaps on 64 bits architectures). QIcon *icon; // widget icon QPixmap *iconPixmap; - QRefCountedWidgetBackingStore backingStore; + QWidgetBackingStoreTracker backingStore; QWindowSurface *windowSurface; QPainter *sharedPainter; |