get rid of mapfromview/maptoview

This commit is contained in:
Marco Martin 2012-09-25 14:12:38 +02:00
parent 3a8db22059
commit 390ec09558
3 changed files with 0 additions and 31 deletions

View File

@ -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);

View File

@ -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

View File

@ -174,7 +174,6 @@ public:
// timerEvent bookkeeping
QBasicTimer constraintsTimer;
QBasicTimer busyWidgetTimer;
QBasicTimer *modificationsTimer;
// a great green field of booleans :)