diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-10-13 15:01:54 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-10-14 11:45:59 (GMT) |
commit | d310f7c710ecb331a9689861f0551eabd38e946e (patch) | |
tree | 66d83a8aea452f8e42b449936e4787fe4c45d7c4 /src/gui/image/qpixmapdata_p.h | |
parent | 997dbe14d8bd4f370a7c972b594b5bc12e80f027 (diff) | |
download | Qt-d310f7c710ecb331a9689861f0551eabd38e946e.zip Qt-d310f7c710ecb331a9689861f0551eabd38e946e.tar.gz Qt-d310f7c710ecb331a9689861f0551eabd38e946e.tar.bz2 |
Added QPixmapData::createCompatiblePixmapData() used by QPixmap::copy().
QPixmap::copy() now returns a pixmap with the same pixmap backend.
Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src/gui/image/qpixmapdata_p.h')
-rw-r--r-- | src/gui/image/qpixmapdata_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/image/qpixmapdata_p.h b/src/gui/image/qpixmapdata_p.h index c26fba3..2f4f201 100644 --- a/src/gui/image/qpixmapdata_p.h +++ b/src/gui/image/qpixmapdata_p.h @@ -75,9 +75,11 @@ public: enum ClassId { RasterClass, X11Class, MacClass, DirectFBClass, OpenGLClass, OpenVGClass, CustomClass = 1024 }; - QPixmapData(PixelType pixelpType, int classId); + QPixmapData(PixelType pixelType, int classId); virtual ~QPixmapData(); + virtual QPixmapData *createCompatiblePixmapData() const; + virtual void resize(int width, int height) = 0; virtual void fromImage(const QImage &image, Qt::ImageConversionFlags flags) = 0; |