diff options
author | aavit <qt-info@nokia.com> | 2010-11-23 11:52:09 +0100 |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-11-23 11:52:09 +0100 |
commit | a1fd6c60455def34663c8a5621f21bab8fee9c21 (patch) | |
tree | cbb0296abceb82add7a2e95fe35ece51098924e6 /tests/auto/lancelot | |
parent | bc40961abdcdfb7cca8cfd7020d9ca32a3105735 (diff) |
Generate thumbnails for faster loading of the web reports
Diffstat (limited to 'tests/auto/lancelot')
-rw-r--r-- | tests/auto/lancelot/tst_lancelot.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/lancelot/tst_lancelot.cpp b/tests/auto/lancelot/tst_lancelot.cpp index 0c5d78742a..7c6fe664da 100644 --- a/tests/auto/lancelot/tst_lancelot.cpp +++ b/tests/auto/lancelot/tst_lancelot.cpp @@ -299,13 +299,15 @@ void tst_Lancelot::paint(QPaintDevice *device, const QStringList &script, const pcmd.setPainter(&p); pcmd.setFilePath(filePath); pcmd.runCommands(); + p.end(); if (simfail) { - p.drawLine(0, 0, 800, 800); + QPainter p2(device); + p2.setPen(QPen(QBrush(Qt::cyan), 3, Qt::DashLine)); + p2.drawLine(200, 200, 600, 600); + p2.drawLine(600, 200, 200, 600); simfail = false; } - - p.end(); } #define main rmain |