summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-09-14 10:40:32 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-09-14 13:08:15 (GMT)
commitf272d891a1fb622ced7a92d426099996f7890945 (patch)
tree543a57d56769533c0d9dacbd07b82b05692f52cc
parentc72eaee91136bbe1a9fa99cdb0a7593bec60264b (diff)
downloadQt-f272d891a1fb622ced7a92d426099996f7890945.zip
Qt-f272d891a1fb622ced7a92d426099996f7890945.tar.gz
Qt-f272d891a1fb622ced7a92d426099996f7890945.tar.bz2
Bring back the blurry drop shadow in the lighting example.
Reviewed-by: Bjørn Erik Nilsen
-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 0dd6057..7026b66 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);