summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-03-04 16:05:56 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-03-04 16:05:56 (GMT)
commitca83e2df556e4e3db361ffd09696ef6c94d7324e (patch)
tree237edade3dc9e5fcdf623f9e7882805f0ea86c14 /src/gui/image
parent8ddf96a15f707001755d5b934f3f900b825b5887 (diff)
parent57530dab8043c67b1356fb764fc83f6ef00dfdc1 (diff)
downloadQt-ca83e2df556e4e3db361ffd09696ef6c94d7324e.zip
Qt-ca83e2df556e4e3db361ffd09696ef6c94d7324e.tar.gz
Qt-ca83e2df556e4e3db361ffd09696ef6c94d7324e.tar.bz2
Merge branch 4.7 into qt-master-from-4.7
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qpixmap_raster.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap_raster.cpp b/src/gui/image/qpixmap_raster.cpp
index 1e7ff04..a5f42c1 100644
--- a/src/gui/image/qpixmap_raster.cpp
+++ b/src/gui/image/qpixmap_raster.cpp
@@ -386,6 +386,9 @@ int QRasterPixmapData::metric(QPaintDevice::PaintDeviceMetric metric) const
void QRasterPixmapData::createPixmapForImage(QImage &sourceImage, Qt::ImageConversionFlags flags, bool inPlace)
{
QImage::Format format;
+ if (flags & Qt::NoFormatConversion)
+ format = sourceImage.format();
+ else
#ifdef Q_WS_QWS
if (pixelType() == BitmapType) {
format = QImage::Format_Mono;