use QGraphicsObject, another nicety in Qt 4.6

svn path=/trunk/KDE/kdelibs/; revision=1035320
This commit is contained in:
Aaron J. Seigo 2009-10-14 18:59:44 +00:00
parent 8e9ad3cfcf
commit 5a36b63df8
2 changed files with 3 additions and 4 deletions

View File

@ -53,8 +53,7 @@ qreal _k_pointAngle(QPointF in);
QPointF _k_rotatePoint(QPointF in, qreal rotateAngle); QPointF _k_rotatePoint(QPointF in, qreal rotateAngle);
AppletHandle::AppletHandle(Containment *parent, Applet *applet, const QPointF &hoverPos) AppletHandle::AppletHandle(Containment *parent, Applet *applet, const QPointF &hoverPos)
: QObject(), : QGraphicsObject(applet),
QGraphicsItem(applet),
m_pressedButton(NoButton), m_pressedButton(NoButton),
m_containment(parent), m_containment(parent),
m_applet(applet), m_applet(applet),

View File

@ -21,7 +21,7 @@
#define PLASMA_APPLETHANDLE_P_H #define PLASMA_APPLETHANDLE_P_H
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtGui/QGraphicsItem> #include <QtGui/QGraphicsObject>
#include <QTimer> #include <QTimer>
#include "animator.h" #include "animator.h"
@ -36,7 +36,7 @@ class Containment;
class FrameSvg; class FrameSvg;
class View; class View;
class AppletHandle : public QObject, public QGraphicsItem class AppletHandle : public QGraphicsObject
{ {
Q_OBJECT Q_OBJECT
#if QT_VERSION >= 0x040600 #if QT_VERSION >= 0x040600