summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 43791c6..042eea3 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 2aea8bf..bf72226 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();