diff options
Diffstat (limited to 'tests/auto/declarative/qsgimage/tst_qsgimage.cpp')
-rw-r--r-- | tests/auto/declarative/qsgimage/tst_qsgimage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qsgimage/tst_qsgimage.cpp b/tests/auto/declarative/qsgimage/tst_qsgimage.cpp index 948f36cdb2..18770d0eb8 100644 --- a/tests/auto/declarative/qsgimage/tst_qsgimage.cpp +++ b/tests/auto/declarative/qsgimage/tst_qsgimage.cpp @@ -53,6 +53,7 @@ #include <QtDeclarative/qdeclarativecontext.h> #include <QtDeclarative/qdeclarativeexpression.h> #include <QtTest/QSignalSpy> +#include <QtGui/QPainter> #include "../../../shared/util.h" #include "../shared/testhttpserver.h" @@ -647,8 +648,7 @@ void tst_qsgimage::nullPixmapPaint() QtMsgHandler previousMsgHandler = qInstallMsgHandler(checkWarnings); // used to print "QTransform::translate with NaN called" - QPixmap pm = canvas->renderPixmap(); - + QPixmap pm = QPixmap::fromImage(canvas->grabFrameBuffer()); qInstallMsgHandler(previousMsgHandler); QVERIFY(numberOfWarnings == 0); delete image; |