summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-09-14 12:40:32 +0200
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-09-14 15:08:15 +0200
commitf272d891a1fb622ced7a92d426099996f7890945 (patch)
tree543a57d56769533c0d9dacbd07b82b05692f52cc /examples
parentc72eaee91136bbe1a9fa99cdb0a7593bec60264b (diff)
Bring back the blurry drop shadow in the lighting example.
Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'examples')
-rw-r--r--examples/effects/lighting/lighting.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/effects/lighting/lighting.cpp b/examples/effects/lighting/lighting.cpp
index 0dd6057e58..7026b66bac 100644
--- a/examples/effects/lighting/lighting.cpp
+++ b/examples/effects/lighting/lighting.cpp
@@ -96,7 +96,9 @@ void Lighting::setupScene()
item->setPen(QPen(Qt::black));
item->setBrush(QBrush(Qt::white));
- item->setGraphicsEffect(new QGraphicsDropShadowEffect);
+ QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect;
+ effect->setBlurRadius(8);
+ item->setGraphicsEffect(effect);
item->setZValue(1);
item->setPos(i * 80, j * 80);
m_scene.addItem(item);