#include <QtDeclarative/qdeclarativecontext.h>
#include <QtDeclarative/qdeclarativeexpression.h>
#include <QtTest/QSignalSpy>
+#include <QtGui/QPainter>
#include "../../../shared/util.h"
#include "../shared/testhttpserver.h"
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;