diff options
-rw-r--r-- | src/gui/graphicsview/qgraphicseffect.cpp | 6 |
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 |