diff --git a/private/applethandle.cpp b/private/applethandle.cpp index 8058a1a8b..95c8f88d9 100644 --- a/private/applethandle.cpp +++ b/private/applethandle.cpp @@ -53,8 +53,7 @@ qreal _k_pointAngle(QPointF in); QPointF _k_rotatePoint(QPointF in, qreal rotateAngle); AppletHandle::AppletHandle(Containment *parent, Applet *applet, const QPointF &hoverPos) - : QObject(), - QGraphicsItem(applet), + : QGraphicsObject(applet), m_pressedButton(NoButton), m_containment(parent), m_applet(applet), diff --git a/private/applethandle_p.h b/private/applethandle_p.h index 63a450da3..f98da263f 100644 --- a/private/applethandle_p.h +++ b/private/applethandle_p.h @@ -21,7 +21,7 @@ #define PLASMA_APPLETHANDLE_P_H #include -#include +#include #include #include "animator.h" @@ -36,7 +36,7 @@ class Containment; class FrameSvg; class View; -class AppletHandle : public QObject, public QGraphicsItem +class AppletHandle : public QGraphicsObject { Q_OBJECT #if QT_VERSION >= 0x040600