Fixed a small bug in flicker effect.
[jspeed] / src / opacityeffect.cpp
index 2b1ea09..d43a8cf 100644 (file)
@@ -21,6 +21,7 @@
 #include <QtGui/QGraphicsOpacityEffect>
 #include <QtGui/QGraphicsItem>
 #include "opacityeffect.h"
+#include "graphicselement.h"
 
 namespace
 {
@@ -62,7 +63,7 @@ bool OpacityEffect::setAttribute(QString const& name, QString const& value)
     }
 }
 
-void OpacityEffect::apply(QGraphicsItem* item)
+void OpacityEffect::apply(GraphicsElement* item)
 {
-    item->setGraphicsEffect(effect_);
+    item->getElement()->setGraphicsEffect(effect_);
 }