summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-06-10 14:09:46 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-06-10 15:17:59 (GMT)
commit11730b27413218c9e9bf1fc35f5e46a35baad874 (patch)
treec259f9d1f964e7e509b7093c2b5a60325a78b1b2 /tests
parentde74fcaeba4551afaa06f3d295e8e834fd5d3eb7 (diff)
downloadQt-11730b27413218c9e9bf1fc35f5e46a35baad874.zip
Qt-11730b27413218c9e9bf1fc35f5e46a35baad874.tar.gz
Qt-11730b27413218c9e9bf1fc35f5e46a35baad874.tar.bz2
tst_qpixmap compile fix
QPixmap(QImage) works with Qt3 support only... Reviewed-by: thartman
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qpixmap/tst_qpixmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qpixmap/tst_qpixmap.cpp b/tests/auto/qpixmap/tst_qpixmap.cpp
index 8a6b63b..058c3c6 100644
--- a/tests/auto/qpixmap/tst_qpixmap.cpp
+++ b/tests/auto/qpixmap/tst_qpixmap.cpp
@@ -376,7 +376,7 @@ void tst_QPixmap::scroll()
QFETCH(QRegion, exposed);
QFETCH(bool, newPix);
- QPixmap pixmap(input);
+ QPixmap pixmap = QPixmap::fromImage(input);
QRegion exp;
qint64 oldKey = pixmap.cacheKey();
pixmap.scroll(dx, dy, rect, &exp);