diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-31 03:38:26 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-31 03:38:26 (GMT) |
commit | 72a6ac6e9a2f6f028994548670cb2c6524864186 (patch) | |
tree | 48c35dcf3c5e6f77e38b06a0d69113e1e0078ce7 /examples | |
parent | 0dc124e9eee0b44e331bfcb54d05a35e816f74a1 (diff) | |
download | Qt-72a6ac6e9a2f6f028994548670cb2c6524864186.zip Qt-72a6ac6e9a2f6f028994548670cb2c6524864186.tar.gz Qt-72a6ac6e9a2f6f028994548670cb2c6524864186.tar.bz2 |
Compile examples/graphicsview/customshader.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/graphicsview/customshader/blureffect.cpp | 6 | ||||
-rw-r--r-- | 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<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(); |