diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-03-21 12:33:30 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-03-21 12:33:30 (GMT) |
commit | 12689cc05936d675c8a7065cf39b8334b83f95bb (patch) | |
tree | c77f27c34fa09adafa879a5b183b056a7adbb3be /tests/auto | |
parent | deefcaaa5bfaf22ee31ae9da2965ab627b0c43b5 (diff) | |
parent | 8621d989b80bd384826569e6f6fec25fe3327c94 (diff) | |
download | Qt-12689cc05936d675c8a7065cf39b8334b83f95bb.zip Qt-12689cc05936d675c8a7065cf39b8334b83f95bb.tar.gz Qt-12689cc05936d675c8a7065cf39b8334b83f95bb.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public:
Change the pooled QGLPixmapData to be backed by QVolatileImage.
Started changes-4.7.4 file
Changed s60 style not to rely on QPixmapData::toNativeType().
Add missing bitmap locking to QVGPixmapData::fromNativeType.
Prepare fromSymbianCFbsBitmap autotest for 16 bpp format.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qpixmap/tst_qpixmap.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qpixmap/tst_qpixmap.cpp b/tests/auto/qpixmap/tst_qpixmap.cpp index bd9c26f..464cd3b 100644 --- a/tests/auto/qpixmap/tst_qpixmap.cpp +++ b/tests/auto/qpixmap/tst_qpixmap.cpp @@ -52,6 +52,7 @@ #include <qsplashscreen.h> #include <private/qpixmapdata_p.h> +#include <private/qdrawhelper_p.h> #include <QSet> @@ -1264,7 +1265,10 @@ void tst_QPixmap::fromSymbianCFbsBitmap() QCOMPARE(actualColor, color); QImage shouldBe(pixmap.width(), pixmap.height(), image.format()); - shouldBe.fill(color.rgba()); + if (image.format() == QImage::Format_RGB16) + shouldBe.fill(qrgb565(color.rgba()).rawValue()); + else + shouldBe.fill(color.rgba()); QCOMPARE(image, shouldBe); } __UHEAP_MARKEND; |