diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-03-21 23:40:21 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-03-23 03:29:35 (GMT) |
commit | fcb738161efc965e91c3d528c31ac77d3a05ac64 (patch) | |
tree | dddb795f53f43288e84f20da35441b0a0507eb90 /tests | |
parent | d9c5d0698109c39547ee23a883b88a48a4f9f8e1 (diff) | |
download | Qt-fcb738161efc965e91c3d528c31ac77d3a05ac64.zip Qt-fcb738161efc965e91c3d528c31ac77d3a05ac64.tar.gz Qt-fcb738161efc965e91c3d528c31ac77d3a05ac64.tar.bz2 |
Fix QGraphicsEffect cache when the item is not visible by the view.
We can't rely on the exposed rect since the item can be outside the view
so we need to regenerate the complete pixmap.
Task-number:QTBUG-8750
Reviewed-by:sroedal
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index 2a44af7..92a7f2e 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -7719,7 +7719,7 @@ void tst_QGraphicsItem::hitTestGraphicsEffectItem() QTest::qWait(50); // Make sure all visible items are repainted. - QCOMPARE(item1->repaints, 0); + QCOMPARE(item1->repaints, 1); QCOMPARE(item2->repaints, 1); QCOMPARE(item3->repaints, 1); |