SVN_SILENT: ssh.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826347
This commit is contained in:
Aaron J. Seigo 2008-06-30 14:39:25 +00:00
parent 1fc493c0c7
commit 07613b5b41

View File

@ -406,7 +406,7 @@ QPoint Applet::popupPosition(const QSize &s) const
QPoint pos = v->mapFromScene(scenePos());
pos = v->mapToGlobal(pos);
kDebug() << "==> position is" << scenePos() << v->mapFromScene(scenePos()) << pos;
//kDebug() << "==> position is" << scenePos() << v->mapFromScene(scenePos()) << pos;
Plasma::View *pv = dynamic_cast<Plasma::View *>(v);
Plasma::Location loc = Floating;
@ -438,7 +438,7 @@ QPoint Applet::popupPosition(const QSize &s) const
//are we out of screen?
QRect screenRect = QApplication::desktop()->screenGeometry(pv ? pv->containment()->screen() : -1);
kDebug() << "==> rect for" << (pv ? pv->containment()->screen() : -1) << "is" << screenRect;
//kDebug() << "==> rect for" << (pv ? pv->containment()->screen() : -1) << "is" << screenRect;
if (pos.rx() + s.width() > screenRect.right()) {
pos.rx() -= ((pos.rx() + s.width()) - screenRect.right());