get rid of mapfromview/maptoview
This commit is contained in:
parent
3a8db22059
commit
390ec09558
16
applet.cpp
16
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);
|
||||
|
14
applet.h
14
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
|
||||
|
@ -174,7 +174,6 @@ public:
|
||||
|
||||
// timerEvent bookkeeping
|
||||
QBasicTimer constraintsTimer;
|
||||
QBasicTimer busyWidgetTimer;
|
||||
QBasicTimer *modificationsTimer;
|
||||
|
||||
// a great green field of booleans :)
|
||||
|
Loading…
Reference in New Issue
Block a user