diff --git a/applet.cpp b/applet.cpp index be0ba0312..115e6e643 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1443,27 +1443,6 @@ void Applet::timerEvent(QTimerEvent *event) } } -QRect Applet::screenRect() const -{ - //TODO: port away QGV - /* - QGraphicsView *v = view(); - - if (v) { - QPointF bottomRight = pos(); - bottomRight.rx() += size().width(); - bottomRight.ry() += size().height(); - - QPoint tL = v->mapToGlobal(v->mapFromScene(pos())); - QPoint bR = v->mapToGlobal(v->mapFromScene(bottomRight)); - return QRect(QPoint(tL.x(), tL.y()), QSize(bR.x() - tL.x(), bR.y() - tL.y())); - }*/ - - //The applet doesn't have a view on it. - //So a screenRect isn't relevant. - return QRect(QPoint(0, 0), QSize(0, 0)); -} - void Applet::raise() { setZValue(++AppletPrivate::s_maxZValue); diff --git a/applet.h b/applet.h index 095eed7a0..5ddb1f120 100644 --- a/applet.h +++ b/applet.h @@ -425,16 +425,6 @@ class PLASMA_EXPORT Applet : public QObject */ bool isContainment() const; - /** - * This method returns screen coordinates for the widget; this method can be somewhat - * expensive and should ONLY be called when screen coordinates are required. For - * example when positioning top level widgets on top of the view to create the - * appearance of unit. - * - * @return a rect of the applet in screen coordinates. - */ - QRect screenRect() const; - /** * @return the Containment, if any, this applet belongs to **/ diff --git a/design/qml_todos.txt b/design/qml_todos.txt index 6a48f69b0..ff820c6a0 100644 --- a/design/qml_todos.txt +++ b/design/qml_todos.txt @@ -24,8 +24,8 @@ Functionality Blocks Porting of Applet and Containment ================================= -* Applet::screenRect() * AppletPrivate::selectItemToDestroy() * ContainmentPrivate::appletAt(const QPointF &point) * ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventInvalidDesktops) +* all geometry functions in Applet and Containment (width, height, geometry, raise, lower...)