From 72a6ac6e9a2f6f028994548670cb2c6524864186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Nilsen?= Date: Fri, 31 Jul 2009 05:38:26 +0200 Subject: Compile examples/graphicsview/customshader. --- examples/graphicsview/customshader/blureffect.cpp | 6 +++--- examples/graphicsview/customshader/blureffect.h | 4 ++-- 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(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(); -- cgit v0.12