use QGraphicsObject, another nicety in Qt 4.6
svn path=/trunk/KDE/kdelibs/; revision=1035320
This commit is contained in:
parent
8e9ad3cfcf
commit
5a36b63df8
@ -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),
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user