summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-28 10:24:32 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-29 06:42:31 (GMT)
commit72debacc7f57b9ea9115e549170341a9ad11bf0f (patch)
tree798a7bbf7dc4bc376a53b8f705d52e18f6dd26f4 /examples/graphicsview
parent854acb3478651312dbe84d9b4ef971b46485fe1f (diff)
downloadQt-72debacc7f57b9ea9115e549170341a9ad11bf0f.zip
Qt-72debacc7f57b9ea9115e549170341a9ad11bf0f.tar.gz
Qt-72debacc7f57b9ea9115e549170341a9ad11bf0f.tar.bz2
Add QGraphicsEffectSource::pixmap.
We need a convenient way of getting the pixmap representation of the source.
Diffstat (limited to 'examples/graphicsview')
-rw-r--r--examples/graphicsview/blurpicker/blureffect.cpp4
-rw-r--r--examples/graphicsview/blurpicker/blureffect.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/graphicsview/blurpicker/blureffect.cpp b/examples/graphicsview/blurpicker/blureffect.cpp
index 43791c6..82be44f 100644
--- a/examples/graphicsview/blurpicker/blureffect.cpp
+++ b/examples/graphicsview/blurpicker/blureffect.cpp
@@ -62,8 +62,8 @@ QRectF BlurEffect::boundingRect() const
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/blurpicker/blureffect.h b/examples/graphicsview/blurpicker/blureffect.h
index 2aea8bf..89694b6 100644
--- a/examples/graphicsview/blurpicker/blureffect.h
+++ b/examples/graphicsview/blurpicker/blureffect.h
@@ -54,7 +54,7 @@ public:
QRectF boundingRect() const;
- void draw(QPainter *painter);
+ void draw(QPainter *painter, QGraphicsEffectSource *source);
private:
void adjustForItem();