From 9b112c42aed8d4da1b145959340727678b9a0a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 5 Dec 2007 23:09:28 +0000 Subject: [PATCH] Use QGraphicsSceneEvent instead of QGraphicsSceneMouseEvent to make it more flexible (actually needed for the devicenotifier) svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=745315 --- dialog.cpp | 4 ++-- dialog.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dialog.cpp b/dialog.cpp index d42c84905..1f540e194 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include @@ -166,7 +166,7 @@ void Dialog::paintBackground(QPainter* painter, const QRect &exposedRect) painter->drawPixmap(exposedRect, *m_cachedBackground, exposedRect); } -void Dialog::position(QGraphicsSceneMouseEvent *event, const QRectF boundingRect, QPointF scenePos) +void Dialog::position(QGraphicsSceneEvent *event, const QRectF boundingRect, QPointF scenePos) { QWidget *viewWidget = event->widget() ? event->widget()->parentWidget() : 0; //QPointF scenePos = mapToScene(boundingRect.topLeft()); diff --git a/dialog.h b/dialog.h index 803c59d1e..bb51d2c7f 100644 --- a/dialog.h +++ b/dialog.h @@ -23,7 +23,7 @@ #define PLASMA_DIALOG_H #include -#include +#include #include @@ -61,7 +61,7 @@ class PLASMA_EXPORT Dialog : public QWidget * @arg boundingRect the boundingRect() from the applet. * @arg scenePos the absolute position on the scene. */ - void position(QGraphicsSceneMouseEvent *event, const QRectF boundingRect, QPointF scenePos); + void position(QGraphicsSceneEvent *event, const QRectF boundingRect, QPointF scenePos); protected: /**