diff -r ef0373b55136 -r 758a864f9613 src/gui/kernel/qwidget_p.h --- a/src/gui/kernel/qwidget_p.h Fri Sep 17 08:34:18 2010 +0300 +++ b/src/gui/kernel/qwidget_p.h Mon Oct 04 01:19:32 2010 +0300 @@ -110,18 +110,18 @@ class QStyle; -class Q_AUTOTEST_EXPORT QRefCountedWidgetBackingStore +class Q_AUTOTEST_EXPORT QWidgetBackingStoreTracker { public: - QRefCountedWidgetBackingStore(); - ~QRefCountedWidgetBackingStore(); + QWidgetBackingStoreTracker(); + ~QWidgetBackingStoreTracker(); void create(QWidget *tlw); void destroy(); - void widgetShown(QWidget *w); - void widgetHidden(QWidget *w); + void registerWidget(QWidget *w); + void unregisterWidget(QWidget *w); inline QWidgetBackingStore* data() { @@ -144,11 +144,11 @@ } private: - Q_DISABLE_COPY(QRefCountedWidgetBackingStore) + Q_DISABLE_COPY(QWidgetBackingStoreTracker) private: QWidgetBackingStore* m_ptr; - QSet m_visibleWidgets; + QSet m_widgets; }; struct QTLWExtra { @@ -157,7 +157,7 @@ // 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;