summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/blurpicker/blureffect.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-07-24 02:05:42 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-07-24 02:05:42 (GMT)
commit940b5bf333d6022fe5d3a037d6b1d74c6b9fe36e (patch)
treefe9efacdf7f836c596fa4231769b092650746f0b /examples/graphicsview/blurpicker/blureffect.h
parent3b974f5b45429675630040224a3ce34b762cc360 (diff)
parente646d08593dc18cad4e59176c2fe8c10fa5b9497 (diff)
downloadQt-940b5bf333d6022fe5d3a037d6b1d74c6b9fe36e.zip
Qt-940b5bf333d6022fe5d3a037d6b1d74c6b9fe36e.tar.gz
Qt-940b5bf333d6022fe5d3a037d6b1d74c6b9fe36e.tar.bz2
Merge branch 'kinetic-graphicseffect' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-graphicseffect
Diffstat (limited to 'examples/graphicsview/blurpicker/blureffect.h')
-rw-r--r--examples/graphicsview/blurpicker/blureffect.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/graphicsview/blurpicker/blureffect.h b/examples/graphicsview/blurpicker/blureffect.h
index 24a6867..2aea8bf 100644
--- a/examples/graphicsview/blurpicker/blureffect.h
+++ b/examples/graphicsview/blurpicker/blureffect.h
@@ -48,21 +48,20 @@
class BlurEffect: public QGraphicsBlurEffect
{
public:
- BlurEffect(QObject *parent = 0);
+ BlurEffect(QGraphicsItem *item);
void setBaseLine(qreal y) { m_baseLine = y; }
- QRectF boundingRectFor(const QGraphicsItem *item);
+ QRectF boundingRect() const;
- void drawItem(QGraphicsItem *item, QPainter *painter,
- const QStyleOptionGraphicsItem *option = 0,
- QWidget *widget = 0);
+ void draw(QPainter *painter);
private:
- void adjustForItem(const QGraphicsItem *item);
+ void adjustForItem();
private:
qreal m_baseLine;
+ QGraphicsItem *item;
};
#endif // BLUREFFECT_H