summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-04 13:36:56 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-04 13:58:19 (GMT)
commit878789d3889d540bd9daad63b84181815d4589ff (patch)
tree9231ae19b4efb90e9bb2d8759a7305df7f0f96b4
parent49e0dbfcdd5f1d8ed50efd62b2285cbddba832e8 (diff)
downloadQt-878789d3889d540bd9daad63b84181815d4589ff.zip
Qt-878789d3889d540bd9daad63b84181815d4589ff.tar.gz
Qt-878789d3889d540bd9daad63b84181815d4589ff.tar.bz2
Toggling QGraphicsEffect's enabled property does not update the source.
Makes tst_QGraphicsEffect::draw happy.
-rw-r--r--src/gui/graphicsview/qgraphicseffect.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicseffect.cpp b/src/gui/graphicsview/qgraphicseffect.cpp
index 43ed86a..e63af3c 100644
--- a/src/gui/graphicsview/qgraphicseffect.cpp
+++ b/src/gui/graphicsview/qgraphicseffect.cpp
@@ -163,7 +163,13 @@ QRectF QGraphicsEffect::boundingRectFor(const QRectF &rect) const
void QGraphicsEffect::setEnabled(bool enable)
{
Q_D(QGraphicsEffect);
+ if (d->isEnabled == enable)
+ return;
+
d->isEnabled = enable;
+
+ if (d->source)
+ d->source->update();
}
bool QGraphicsEffect::isEnabled() const