diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-07 08:30:35 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-07 08:35:47 (GMT) |
commit | 7e2f40b8b98bab3cb5fd5343e496c3a268ce1c65 (patch) | |
tree | f2eb55d9d31df72c91db8d2c5371a89371fe1dff /tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp | |
parent | 525f585465029075bace5f68997bea07e64f7725 (diff) | |
download | Qt-7e2f40b8b98bab3cb5fd5343e496c3a268ce1c65.zip Qt-7e2f40b8b98bab3cb5fd5343e496c3a268ce1c65.tar.gz Qt-7e2f40b8b98bab3cb5fd5343e496c3a268ce1c65.tar.bz2 |
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/tst_qgraphicseffect.cpp')
-rw-r--r-- | tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp index b4c78f7..1e62bf8 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(); |