aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArmin Berres <armin.berres@basyskom.de>2010-11-30 16:42:18 +0100
committerArmin Berres <armin.berres@basyskom.de>2010-12-01 11:15:30 +0100
commitcd5b099af1d6b6d3a97cda3f6d4dcdbd7c9ca883 (patch)
treefd3b4c92ef38e5592d7dba4d615601cfeee6a6b4 /tests
parentadc851fc1e78c43dbfaccf123f0d43f187eb6fcd (diff)
Fixes: ut_mscene with meego graphicssystem
RevBy: Holger Schröder Details: Due to a bug in Qt painting on a QPixmap does also change a formerly copied QImage when the raster graphicssystem is used We explicitly force a deep copy now by refilling the pixmap.
Diffstat (limited to 'tests')
-rw-r--r--tests/ut_mscene/ut_mscene.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ut_mscene/ut_mscene.cpp b/tests/ut_mscene/ut_mscene.cpp
index 927cb53b..31c97509 100644
--- a/tests/ut_mscene/ut_mscene.cpp
+++ b/tests/ut_mscene/ut_mscene.cpp
@@ -78,6 +78,7 @@ void Ut_MScene::drawForeground()
QImage img1 = p->toImage();
m_subject->addItem(new MButton("foobar"));
+ p->fill(QColor(255, 255, 255, 0));
m_subject->drawForeground(myPainter, QRect(0, 0, 300, 300));
QImage img2 = p->toImage();
QVERIFY(img1 != img2);