diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-26 09:39:38 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-27 07:50:27 (GMT) |
commit | c39fac87d62ef15867dc5571d03530d7e7240aa7 (patch) | |
tree | e947eb70c239619cf20db288300f3b0dd4423d92 /src/gui/effects/qgraphicseffect.h | |
parent | f6480ca465af9617956752e60d9be3a19b710e0f (diff) | |
download | Qt-c39fac87d62ef15867dc5571d03530d7e7240aa7.zip Qt-c39fac87d62ef15867dc5571d03530d7e7240aa7.tar.gz Qt-c39fac87d62ef15867dc5571d03530d7e7240aa7.tar.bz2 |
Options on how to get a pixmap from an effect source
Usable for future optimizations.
Reviewed-by: Samuel
Diffstat (limited to 'src/gui/effects/qgraphicseffect.h')
-rw-r--r-- | src/gui/effects/qgraphicseffect.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/effects/qgraphicseffect.h b/src/gui/effects/qgraphicseffect.h index 019e808..abf03b3 100644 --- a/src/gui/effects/qgraphicseffect.h +++ b/src/gui/effects/qgraphicseffect.h @@ -64,6 +64,12 @@ class Q_GUI_EXPORT QGraphicsEffectSource : public QObject { Q_OBJECT public: + enum PixmapPadMode { + NoExpandPadMode, + ExpandToTransparentBorderPadMode, + ExpandToEffectRectPadMode + }; + ~QGraphicsEffectSource(); const QGraphicsItem *graphicsItem() const; const QWidget *widget() const; @@ -75,7 +81,9 @@ public: QRectF boundingRect(Qt::CoordinateSystem coordinateSystem = Qt::LogicalCoordinates) const; QRect deviceRect() const; - QPixmap pixmap(Qt::CoordinateSystem system = Qt::LogicalCoordinates, QPoint *offset = 0) const; + QPixmap pixmap(Qt::CoordinateSystem system = Qt::LogicalCoordinates, + QPoint *offset = 0, + PixmapPadMode mode = ExpandToEffectRectPadMode) const; protected: QGraphicsEffectSource(QGraphicsEffectSourcePrivate &dd, QObject *parent = 0); |