diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-28 10:24:32 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-29 06:42:31 (GMT) |
commit | 72debacc7f57b9ea9115e549170341a9ad11bf0f (patch) | |
tree | 798a7bbf7dc4bc376a53b8f705d52e18f6dd26f4 /examples/graphicsview | |
parent | 854acb3478651312dbe84d9b4ef971b46485fe1f (diff) | |
download | Qt-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.cpp | 4 | ||||
-rw-r--r-- | examples/graphicsview/blurpicker/blureffect.h | 2 |
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(); |