remove Applet::screenRect()
was used only in a couple of scriptengines (webkit engine and accessible applet)
This commit is contained in:
parent
d2f9694281
commit
3d3a99aa0d
21
applet.cpp
21
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()
|
void Applet::raise()
|
||||||
{
|
{
|
||||||
setZValue(++AppletPrivate::s_maxZValue);
|
setZValue(++AppletPrivate::s_maxZValue);
|
||||||
|
10
applet.h
10
applet.h
@ -425,16 +425,6 @@ class PLASMA_EXPORT Applet : public QObject
|
|||||||
*/
|
*/
|
||||||
bool isContainment() const;
|
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
|
* @return the Containment, if any, this applet belongs to
|
||||||
**/
|
**/
|
||||||
|
@ -24,8 +24,8 @@ Functionality Blocks
|
|||||||
Porting of Applet and Containment
|
Porting of Applet and Containment
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
* Applet::screenRect()
|
|
||||||
* AppletPrivate::selectItemToDestroy()
|
* AppletPrivate::selectItemToDestroy()
|
||||||
* ContainmentPrivate::appletAt(const QPointF &point)
|
* ContainmentPrivate::appletAt(const QPointF &point)
|
||||||
* ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventInvalidDesktops)
|
* ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventInvalidDesktops)
|
||||||
|
* all geometry functions in Applet and Containment (width, height, geometry, raise, lower...)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user