diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-29 03:15:02 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-29 06:43:35 (GMT) |
commit | 0eccc0f9ee9579883a829c373cfc1c072704bca0 (patch) | |
tree | db7ebfc5b35077d4f1d5851ed116e33795f7933b /src/gui/graphicsview/qgraphicsitem.cpp | |
parent | 1cff081464744774d9d3e76704c03209fca280c2 (diff) | |
download | Qt-0eccc0f9ee9579883a829c373cfc1c072704bca0.zip Qt-0eccc0f9ee9579883a829c373cfc1c072704bca0.tar.gz Qt-0eccc0f9ee9579883a829c373cfc1c072704bca0.tar.bz2 |
Make it possible to disable graphics effects.
Adds QGraphicsEffect::setEnabled/isEnabled
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp index bb3258d..8c604e1 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -2252,7 +2252,7 @@ void QGraphicsItem::setGraphicsEffect(QGraphicsEffect *effect) */ QRectF QGraphicsItem::effectiveBoundingRect() const { - if (d_ptr->graphicsEffect) + if (d_ptr->graphicsEffect && d_ptr->graphicsEffect->isEnabled()) return d_ptr->graphicsEffect->boundingRect(); return boundingRect(); } |