summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmapdata_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-10-28 12:49:19 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-30 09:22:14 (GMT)
commit79eef278228aac21fbf8b21eaa337f2922bc68c1 (patch)
treef5dee10e99a57e69713726d7195ccbd2df582677 /src/gui/image/qpixmapdata_p.h
parent8efb1eb4b112dfe718f47a5b99cd9a839ac62752 (diff)
downloadQt-79eef278228aac21fbf8b21eaa337f2922bc68c1.zip
Qt-79eef278228aac21fbf8b21eaa337f2922bc68c1.tar.gz
Qt-79eef278228aac21fbf8b21eaa337f2922bc68c1.tar.bz2
Lazily construct QPixmapData's for null pixmaps
Reviewed-by: Trond
Diffstat (limited to 'src/gui/image/qpixmapdata_p.h')
-rw-r--r--src/gui/image/qpixmapdata_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qpixmapdata_p.h b/src/gui/image/qpixmapdata_p.h
index e99409c..d1bb92a 100644
--- a/src/gui/image/qpixmapdata_p.h
+++ b/src/gui/image/qpixmapdata_p.h
@@ -122,6 +122,8 @@ public:
virtual void fromNativeType(void* pixmap, NativeType type);
#endif
+ static QPixmapData *create(int w, int h, PixelType type);
+
protected:
void setSerialNumber(int serNo);
int w;