summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap_raster_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-06-23 13:55:20 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2010-06-23 14:05:13 +0200
commit5817f04060f5a545a71a1f9e9dfa167f92a4ab93 (patch)
tree125b55e5593e699ee73daa8934f80c75f64db73f /src/gui/image/qpixmap_raster_p.h
parent0c0eac000ecbe8c0bdcb8c6d914854b1a09a720b (diff)
Fixed missing copy of raster pixmap data after change fb76a872e20bd.
It's expected that copy actually does a deep copy of the image data. Because QRasterPixmapData::fromImage() will just use the source image as is in this case we need to do a deep copy of the QImage. Reviewed-by: Trond
Diffstat (limited to 'src/gui/image/qpixmap_raster_p.h')
-rw-r--r--src/gui/image/qpixmap_raster_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap_raster_p.h b/src/gui/image/qpixmap_raster_p.h
index 42ceecad6e..a46e05494b 100644
--- a/src/gui/image/qpixmap_raster_p.h
+++ b/src/gui/image/qpixmap_raster_p.h
@@ -75,6 +75,7 @@ public:
bool fromData(const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags);
void fromImage(const QImage &image, Qt::ImageConversionFlags flags);
+ void copy(const QPixmapData *data, const QRect &rect);
bool scroll(int dx, int dy, const QRect &rect);
void fill(const QColor &color);
void setMask(const QBitmap &mask);