diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-05-25 09:59:10 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:20:25 (GMT) |
commit | b5c401b9aa3481886ad9e2d7816680c97839004e (patch) | |
tree | 476d42d12be47d20d8763a0cfc8365fdb781e758 /src/gui/graphicsview/qgraphicsscene_p.h | |
parent | cea87b08520888feff2f10d1bbf71bc8c2f1d780 (diff) | |
download | Qt-b5c401b9aa3481886ad9e2d7816680c97839004e.zip Qt-b5c401b9aa3481886ad9e2d7816680c97839004e.tar.gz Qt-b5c401b9aa3481886ad9e2d7816680c97839004e.tar.bz2 |
Add recursive drawing method to QGraphicsScene. For now it's opt-in, but
the important thing is by effectively implementing Simple Canvas' approach
to drawing, we're in theory (and in practise measured on the desktop)
as fast as Simple Canvas when rendering.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_p.h b/src/gui/graphicsview/qgraphicsscene_p.h index 9ace725..369b0ef 100644 --- a/src/gui/graphicsview/qgraphicsscene_p.h +++ b/src/gui/graphicsview/qgraphicsscene_p.h @@ -253,6 +253,9 @@ public: const QStyleOptionGraphicsItem *option, QWidget *widget, bool painterStateProtection); + void drawSubtreeRecursive(QGraphicsItem *item, QPainter *painter, const QTransform &viewTransform, + const QRegion &exposedRegion, QWidget *widget); + QStyle *style; QFont font; void setFont_helper(const QFont &font); |