diff options
author | Jani Hautakangas <ext-jani.hautakangas@nokia.com> | 2009-12-16 13:21:10 (GMT) |
---|---|---|
committer | Jani Hautakangas <ext-jani.hautakangas@nokia.com> | 2009-12-16 13:42:47 (GMT) |
commit | 4b815774358c3c981dc8bbbcb0dd68abe2e812f2 (patch) | |
tree | 3c095285ff03743e4563114e1dd40af0fffbffbf /tests/auto/qpixmap | |
parent | 989895e84806b88f0b1e0d75ce6dbf6c482357b6 (diff) | |
download | Qt-4b815774358c3c981dc8bbbcb0dd68abe2e812f2.zip Qt-4b815774358c3c981dc8bbbcb0dd68abe2e812f2.tar.gz Qt-4b815774358c3c981dc8bbbcb0dd68abe2e812f2.tar.bz2 |
Fix for QTBUG-4908 SVG transparency rendering problem.
QPixmap::copy discarded alpha channel.
This fix also removes usage of member variables CFbsBitGc and
CFbsBitmapDevice. Now those are used only in function scope.
Reviewed-by: Sami Merila
Diffstat (limited to 'tests/auto/qpixmap')
-rw-r--r-- | tests/auto/qpixmap/tst_qpixmap.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qpixmap/tst_qpixmap.cpp b/tests/auto/qpixmap/tst_qpixmap.cpp index 0effd01..0164c9d 100644 --- a/tests/auto/qpixmap/tst_qpixmap.cpp +++ b/tests/auto/qpixmap/tst_qpixmap.cpp @@ -1289,6 +1289,12 @@ void tst_QPixmap::copy() QPixmap expected(10, 10); expected.fill(Qt::blue); QVERIFY(lenientCompare(dest, expected)); + + QPixmap trans; + trans.fill(Qt::transparent); + + QPixmap transCopy = trans.copy(); + QVERIFY(pixmapsAreEqual(&trans, &transCopy)); } #ifdef QT3_SUPPORT |