summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem_p.h
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-28 14:57:35 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-29 06:43:32 (GMT)
commitf55576b670c69b69c5f1140661cf20cbda96853a (patch)
tree88d6c6bdd478b360eb6aa07e3f9cb9cb74523f91 /src/gui/graphicsview/qgraphicsitem_p.h
parent72debacc7f57b9ea9115e549170341a9ad11bf0f (diff)
downloadQt-f55576b670c69b69c5f1140661cf20cbda96853a.zip
Qt-f55576b670c69b69c5f1140661cf20cbda96853a.tar.gz
Qt-f55576b670c69b69c5f1140661cf20cbda96853a.tar.bz2
add support for passing arbitrary painters into
QGraphicsEffectSource::draw
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsitem_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem_p.h b/src/gui/graphicsview/qgraphicsitem_p.h
index db79e07..c6161bf 100644
--- a/src/gui/graphicsview/qgraphicsitem_p.h
+++ b/src/gui/graphicsview/qgraphicsitem_p.h
@@ -514,9 +514,9 @@ struct QGraphicsItemPaintInfo
{
inline QGraphicsItemPaintInfo(const QTransform *const xform1, QTransform *xform2,
QRegion *r, QWidget *w, QStyleOptionGraphicsItem *opt,
- qreal o, bool b1, bool b2)
+ QPainter *p, qreal o, bool b1, bool b2)
: viewTransform(xform1), transformPtr(xform2), exposedRegion(r), widget(w),
- option(opt), opacity(o), wasDirtySceneTransform(b1), drawItem(b2)
+ option(opt), painter(p), opacity(o), wasDirtySceneTransform(b1), drawItem(b2)
{}
const QTransform *viewTransform;
@@ -524,6 +524,7 @@ struct QGraphicsItemPaintInfo
QRegion *exposedRegion;
QWidget *widget;
QStyleOptionGraphicsItem *option;
+ QPainter *painter;
qreal opacity;
quint32 wasDirtySceneTransform : 1;
quint32 drawItem : 1;