diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-10-29 13:28:36 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-10-29 14:18:30 (GMT) |
commit | 4531ffbd8aa2cc0ae656715e449caca1649c18b9 (patch) | |
tree | 31432fbebde717f08469d77ee88b3de8f97914df /src/gui/image/qimagepixmapcleanuphooks_p.h | |
parent | 7881773800c05c09f0e85a80c1cbb678981bd6c0 (diff) | |
download | Qt-4531ffbd8aa2cc0ae656715e449caca1649c18b9.zip Qt-4531ffbd8aa2cc0ae656715e449caca1649c18b9.tar.gz Qt-4531ffbd8aa2cc0ae656715e449caca1649c18b9.tar.bz2 |
Added QImagePixmapCleanupHooks functions for enabling hooks.
Better than having to befriend QPixmapData and setting is_cached
manually.
Reviewed-by: Tom Cooksey
Diffstat (limited to 'src/gui/image/qimagepixmapcleanuphooks_p.h')
-rw-r--r-- | src/gui/image/qimagepixmapcleanuphooks_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/image/qimagepixmapcleanuphooks_p.h b/src/gui/image/qimagepixmapcleanuphooks_p.h index 16c8974..9e490d7 100644 --- a/src/gui/image/qimagepixmapcleanuphooks_p.h +++ b/src/gui/image/qimagepixmapcleanuphooks_p.h @@ -70,6 +70,10 @@ public: 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); |