summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem.cpp
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-29 03:15:02 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-29 06:43:35 (GMT)
commit0eccc0f9ee9579883a829c373cfc1c072704bca0 (patch)
treedb7ebfc5b35077d4f1d5851ed116e33795f7933b /src/gui/graphicsview/qgraphicsitem.cpp
parent1cff081464744774d9d3e76704c03209fca280c2 (diff)
downloadQt-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.cpp2
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();
}