summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-09-07 14:21:43 (GMT)
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-09-07 14:23:39 (GMT)
commita93243ce81fdc71842bb133e7eadb9476e4648e4 (patch)
tree2736df0f6833355f593eb8bfcf69184d0bd789e4 /tests
parent98a4db7321cb286cd0a7a07adeb265798a650515 (diff)
downloadQt-a93243ce81fdc71842bb133e7eadb9476e4648e4.zip
Qt-a93243ce81fdc71842bb133e7eadb9476e4648e4.tar.gz
Qt-a93243ce81fdc71842bb133e7eadb9476e4648e4.tar.bz2
Always call QPainter::end() before using the object drawn to.
This caused the background pixmap not to draw correctly on some systems. Reviewed-by: Samuel
Diffstat (limited to 'tests')
-rw-r--r--tests/arthur/common/paintcommands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/arthur/common/paintcommands.cpp b/tests/arthur/common/paintcommands.cpp
index 70d419e..c4f09a4 100644
--- a/tests/arthur/common/paintcommands.cpp
+++ b/tests/arthur/common/paintcommands.cpp
@@ -713,7 +713,7 @@ void PaintCommands::runCommands()
QPainter pt(&pm);
pt.fillRect(0, 0, 10, 10, QColor::fromRgba(0xffdfdfdf));
pt.fillRect(10, 10, 10, 10, QColor::fromRgba(0xffdfdfdf));
-
+ pt.end();
m_painter->drawTiledPixmap(0, 0, width, height, pm);
} else {
m_painter->fillRect(0, 0, width, height, Qt::white);