diff --git a/applet.cpp b/applet.cpp index c4fc2069f..f4e65d7cd 100644 --- a/applet.cpp +++ b/applet.cpp @@ -482,22 +482,6 @@ Package Applet::package() const return d->package ? *d->package : Package(); } -QRectF Applet::mapFromView(const QGraphicsView *view, const QRect &rect) const -{ - return QRect(); - /*TODO: port away qgv - // Why is this adjustment needed? Qt calculation error? - return mapFromScene(view->mapToScene(rect)).boundingRect().adjusted(0, 0, 1, 1);*/ -} - -QRect Applet::mapToView(const QGraphicsView *view, const QRectF &rect) const -{ - return QRect(); - /*TODO: port away qgv - // Why is this adjustment needed? Qt calculation error? - return view->mapFromScene(mapToScene(rect)).boundingRect().adjusted(0, 0, -1, -1);*/ -} - QPoint Applet::popupPosition(const QSize &s) const { return popupPosition(s, Qt::AlignLeft); diff --git a/applet.h b/applet.h index 84a9dbc80..3065e7fc4 100644 --- a/applet.h +++ b/applet.h @@ -173,20 +173,6 @@ class PLASMA_EXPORT Applet : public QObject **/ Package package() const; - /** - * Maps a QRect from a view's coordinates to local coordinates. - * @param view the view from which rect should be mapped - * @param rect the rect to be mapped - */ - QRectF mapFromView(const QGraphicsView *view, const QRect &rect) const; - - /** - * Maps a QRectF from local coordinates to a view's coordinates. - * @param view the view to which rect should be mapped - * @param rect the rect to be mapped - */ - QRect mapToView(const QGraphicsView *view, const QRectF &rect) const; - /** * Reccomended position for a popup window like a menu or a tooltip * given its size diff --git a/private/applet_p.h b/private/applet_p.h index 35c664fdb..3ab299c3f 100644 --- a/private/applet_p.h +++ b/private/applet_p.h @@ -174,7 +174,6 @@ public: // timerEvent bookkeeping QBasicTimer constraintsTimer; - QBasicTimer busyWidgetTimer; QBasicTimer *modificationsTimer; // a great green field of booleans :)