Fixed a small bug in flicker effect.
[jspeed] / src / dropshadoweffect.cpp
index 0eac608..22be213 100644 (file)
@@ -22,6 +22,7 @@
 #include <QtGui/QGraphicsDropShadowEffect>
 #include <QtGui/QGraphicsItem>
 #include "dropshadoweffect.h"
+#include "graphicselement.h"
 
 namespace
 {
@@ -75,7 +76,7 @@ bool DropshadowEffect::setAttribute(QString const& name, QString const& value)
     }
 }
 
-void DropshadowEffect::apply(QGraphicsItem* item)
+void DropshadowEffect::apply(GraphicsElement* item)
 {
-    item->setGraphicsEffect(effect_);
+    item->getElement()->setGraphicsEffect(effect_);
 }