summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-06-01 08:36:47 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-06-01 08:46:31 (GMT)
commitbcafe4a3dde9986ecfdeea43dc592b6f54134893 (patch)
tree238c7fd1ba202a8fbf5f2db43cec46c95a92d88f /src
parent9789cdb6c3a6070fffb4644ce52cd176f44c3d48 (diff)
downloadQt-bcafe4a3dde9986ecfdeea43dc592b6f54134893.zip
Qt-bcafe4a3dde9986ecfdeea43dc592b6f54134893.tar.gz
Qt-bcafe4a3dde9986ecfdeea43dc592b6f54134893.tar.bz2
Fixed alpha check for mono images.
Task-number: QTBUG-9072 Reviewed-by: Trond
Diffstat (limited to 'src')
-rw-r--r--src/gui/image/qimage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp
index d46f40e..473f93a 100644
--- a/src/gui/image/qimage.cpp
+++ b/src/gui/image/qimage.cpp
@@ -272,6 +272,8 @@ bool QImageData::checkForAlphaPixels() const
switch (format) {
+ case QImage::Format_Mono:
+ case QImage::Format_MonoLSB:
case QImage::Format_Indexed8:
has_alpha_pixels = has_alpha_clut;
break;