diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-06-01 10:36:47 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2011-06-09 13:06:03 +0300 |
commit | cf17565d64f2d77af2ea5d576cb3942a5991db6a (patch) | |
tree | 6efdd9d2e27c151f45367e0a035164920ba690fa /src | |
parent | 252dab06707b60e4cfdeee6025180a0080f70c63 (diff) | |
download | qt4-tools-cf17565d64f2d77af2ea5d576cb3942a5991db6a.tar.gz |
Fixed alpha check for mono images.
Task-number: QTBUG-9072
Reviewed-by: Trond
(cherry picked from commit bcafe4a3dde9986ecfdeea43dc592b6f54134893)
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/image/qimage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp index de8baf64e2..76af5d369f 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; |