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