summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene_p.h
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-05-29 13:32:38 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-09 07:29:55 (GMT)
commit5d54c09085979431831297f0e63f39c73f884d20 (patch)
tree7eb04ac77a4f927ca4938def53dce143cbb588a6 /src/gui/graphicsview/qgraphicsscene_p.h
parent2581606e0f86280546c498fec130d2625376dda7 (diff)
downloadQt-5d54c09085979431831297f0e63f39c73f884d20.zip
Qt-5d54c09085979431831297f0e63f39c73f884d20.tar.gz
Qt-5d54c09085979431831297f0e63f39c73f884d20.tar.bz2
Avoid calling QGraphicsItem::effectiveOpacity() when rendering - instead
just calculate it top-down. Reviewed-by: bnilsen
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsscene_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_p.h b/src/gui/graphicsview/qgraphicsscene_p.h
index e7e96f5..4facec3 100644
--- a/src/gui/graphicsview/qgraphicsscene_p.h
+++ b/src/gui/graphicsview/qgraphicsscene_p.h
@@ -256,7 +256,8 @@ public:
void drawSubtreeRecursive(QGraphicsItem *item, QPainter *painter, const QTransform &parentTransform,
const QTransform &viewTransform,
- const QRegion &exposedRegion, QWidget *widget, QGraphicsView::OptimizationFlags optimizationFlags);
+ const QRegion &exposedRegion, QWidget *widget, QGraphicsView::OptimizationFlags optimizationFlags,
+ qreal parentOpacity = qreal(1.0));
void markDirty(QGraphicsItem *item, const QRectF &rect = QRectF(), bool invalidateChildren = false,
bool maybeDirtyClipPath = false, bool force = false, bool ignoreOpacity = false);
void processDirtyItemsRecursive(QGraphicsItem *item, const QTransform &);