diff options
author | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-06-10 14:09:46 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-06-10 15:17:59 (GMT) |
commit | 11730b27413218c9e9bf1fc35f5e46a35baad874 (patch) | |
tree | c259f9d1f964e7e509b7093c2b5a60325a78b1b2 | |
parent | de74fcaeba4551afaa06f3d295e8e834fd5d3eb7 (diff) | |
download | Qt-11730b27413218c9e9bf1fc35f5e46a35baad874.zip Qt-11730b27413218c9e9bf1fc35f5e46a35baad874.tar.gz Qt-11730b27413218c9e9bf1fc35f5e46a35baad874.tar.bz2 |
tst_qpixmap compile fix
QPixmap(QImage) works with Qt3 support only...
Reviewed-by: thartman
-rw-r--r-- | tests/auto/qpixmap/tst_qpixmap.cpp | 2 |
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); |