--- a/src/gui/image/qimagepixmapcleanuphooks_p.h Tue Jan 26 12:42:25 2010 +0200
+++ b/src/gui/image/qimagepixmapcleanuphooks_p.h Tue Feb 02 00:43:10 2010 +0200
@@ -61,14 +61,15 @@
typedef void (*_qt_pixmap_cleanup_hook_pm)(QPixmap*);
class QImagePixmapCleanupHooks;
-extern QImagePixmapCleanupHooks* qt_image_and_pixmap_cleanup_hooks;
class Q_GUI_EXPORT QImagePixmapCleanupHooks
{
public:
- QImagePixmapCleanupHooks();
+ static QImagePixmapCleanupHooks *instance();
- static QImagePixmapCleanupHooks *instance();
+ static void enableCleanupHooks(const QImage &image);
+ static void enableCleanupHooks(const QPixmap &pixmap);
+ static void enableCleanupHooks(QPixmapData *pixmapData);
// Gets called when a pixmap is about to be modified:
void addPixmapModificationHook(_qt_pixmap_cleanup_hook_pm);