From cecd47b7b37567d1dbc09684e470e9a6a929a175 Mon Sep 17 00:00:00 2001 From: Matthew Cattell Date: Tue, 6 Sep 2011 17:41:57 +0200 Subject: [PATCH] make test build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Id640db28b5a827a7f66f663684019c542987a3f4 Reviewed-on: http://codereview.qt.nokia.com/4290 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal --- 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 948f36c..18770d0 100644 --- a/tests/auto/declarative/qsgimage/tst_qsgimage.cpp +++ b/tests/auto/declarative/qsgimage/tst_qsgimage.cpp @@ -53,6 +53,7 @@ #include #include #include +#include #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; -- 1.7.2.5