summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-06 00:01:44 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-06 00:01:44 (GMT)
commit4ad04d20d69ed0d8903c2d6d2f91dfd40f7e13a4 (patch)
tree11c11797a6ab54228f0a694e6b0a608652f8ae51 /tools
parentf3bd54db65b88560a079ee19bfebb3f17004bef3 (diff)
downloadQt-4ad04d20d69ed0d8903c2d6d2f91dfd40f7e13a4.zip
Qt-4ad04d20d69ed0d8903c2d6d2f91dfd40f7e13a4.tar.gz
Qt-4ad04d20d69ed0d8903c2d6d2f91dfd40f7e13a4.tar.bz2
Make tests with transparent QML reproducible.
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlviewer/qfxtester.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlviewer/qfxtester.cpp b/tools/qmlviewer/qfxtester.cpp
index 802a927..5484771 100644
--- a/tools/qmlviewer/qfxtester.cpp
+++ b/tools/qmlviewer/qfxtester.cpp
@@ -248,6 +248,7 @@ void QmlGraphicsTester::updateCurrentTime(int msec)
QImage img(m_view->width(), m_view->height(), QImage::Format_RGB32);
if (options & QmlViewer::TestImages) {
+ img.fill(qRgb(255,255,255));
QPainter p(&img);
m_view->render(&p);
}