equal
deleted
inserted
replaced
59 |
59 |
60 typedef void (*_qt_image_cleanup_hook_64)(qint64); |
60 typedef void (*_qt_image_cleanup_hook_64)(qint64); |
61 typedef void (*_qt_pixmap_cleanup_hook_pm)(QPixmap*); |
61 typedef void (*_qt_pixmap_cleanup_hook_pm)(QPixmap*); |
62 |
62 |
63 class QImagePixmapCleanupHooks; |
63 class QImagePixmapCleanupHooks; |
64 extern QImagePixmapCleanupHooks* qt_image_and_pixmap_cleanup_hooks; |
|
65 |
64 |
66 class Q_GUI_EXPORT QImagePixmapCleanupHooks |
65 class Q_GUI_EXPORT QImagePixmapCleanupHooks |
67 { |
66 { |
68 public: |
67 public: |
69 QImagePixmapCleanupHooks(); |
68 static QImagePixmapCleanupHooks *instance(); |
70 |
69 |
71 static QImagePixmapCleanupHooks *instance(); |
70 static void enableCleanupHooks(const QImage &image); |
|
71 static void enableCleanupHooks(const QPixmap &pixmap); |
|
72 static void enableCleanupHooks(QPixmapData *pixmapData); |
72 |
73 |
73 // Gets called when a pixmap is about to be modified: |
74 // Gets called when a pixmap is about to be modified: |
74 void addPixmapModificationHook(_qt_pixmap_cleanup_hook_pm); |
75 void addPixmapModificationHook(_qt_pixmap_cleanup_hook_pm); |
75 |
76 |
76 // Gets called when a pixmap is about to be destroyed: |
77 // Gets called when a pixmap is about to be destroyed: |