summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-31 05:38:26 +0200
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-31 05:38:26 +0200
commit72a6ac6e9a2f6f028994548670cb2c6524864186 (patch)
tree48c35dcf3c5e6f77e38b06a0d69113e1e0078ce7 /examples
parent0dc124e9eee0b44e331bfcb54d05a35e816f74a1 (diff)
Compile examples/graphicsview/customshader.
Diffstat (limited to 'examples')
-rw-r--r--examples/graphicsview/customshader/blureffect.cpp6
-rw-r--r--examples/graphicsview/customshader/blureffect.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/graphicsview/customshader/blureffect.cpp b/examples/graphicsview/customshader/blureffect.cpp
index 43791c6fb..042eea311 100644
--- a/examples/graphicsview/customshader/blureffect.cpp
+++ b/examples/graphicsview/customshader/blureffect.cpp
@@ -56,14 +56,14 @@ void BlurEffect::adjustForItem()
setBlurRadius(radius);
}
-QRectF BlurEffect::boundingRect() const
+QRectF BlurEffect::boundingRectFor(const QRectF &rect) const
{
const_cast<BlurEffect *>(this)->adjustForItem();
return QGraphicsBlurEffect::boundingRect();
}
-void BlurEffect::draw(QPainter *painter)
+void BlurEffect::draw(QPainter *painter, QGraphicsEffectSource *source)
{
adjustForItem();
- QGraphicsBlurEffect::draw(painter);
+ QGraphicsBlurEffect::draw(painter, source);
}
diff --git a/examples/graphicsview/customshader/blureffect.h b/examples/graphicsview/customshader/blureffect.h
index 2aea8bf33..bf7222665 100644
--- a/examples/graphicsview/customshader/blureffect.h
+++ b/examples/graphicsview/customshader/blureffect.h
@@ -52,9 +52,9 @@ public:
void setBaseLine(qreal y) { m_baseLine = y; }
- QRectF boundingRect() const;
+ QRectF boundingRectFor(const QRectF &) const;
- void draw(QPainter *painter);
+ void draw(QPainter *painter, QGraphicsEffectSource*);
private:
void adjustForItem();