make test build
authorMatthew Cattell <matthew.cattell@nokia.com>
Tue, 6 Sep 2011 15:41:57 +0000 (17:41 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Wed, 7 Sep 2011 05:53:54 +0000 (07:53 +0200)
Change-Id: Id640db28b5a827a7f66f663684019c542987a3f4
Reviewed-on: http://codereview.qt.nokia.com/4290
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>

tests/auto/declarative/qsgimage/tst_qsgimage.cpp

index 948f36c..18770d0 100644 (file)
@@ -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;