summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicseffect
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-07 10:30:35 +0200
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-07 10:35:47 +0200
commit7e2f40b8b98bab3cb5fd5343e496c3a268ce1c65 (patch)
treef2eb55d9d31df72c91db8d2c5371a89371fe1dff /tests/auto/qgraphicseffect
parent525f585465029075bace5f68997bea07e64f7725 (diff)
Notify QGraphicsEffect whenever the source is invalidated.
In case of caching, the effect must be notified whenever the source has been invalidated; otherwise the cached pixmap will not be up-to-date. Auto-test included.
Diffstat (limited to 'tests/auto/qgraphicseffect')
-rw-r--r--tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
index b4c78f7516..1e62bf8d84 100644
--- a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
+++ b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
@@ -282,6 +282,7 @@ void tst_QGraphicsEffect::draw()
QTest::qWait(50);
QCOMPARE(effect->numRepaints, 1);
QCOMPARE(item->numRepaints, 1);
+ QVERIFY(effect->m_sourceChangedFlags & QGraphicsEffect::SourceInvalidated);
effect->reset();
item->reset();