just ask the view for its screen directly

svn path=/trunk/KDE/kdelibs/; revision=1042421
This commit is contained in:
Aaron J. Seigo 2009-10-29 19:20:19 +00:00
parent 5bd2af94f8
commit 895d230262

View File

@ -662,7 +662,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
}
//are we out of screen?
QRect screenRect = screenGeometry((pv && pv->containment()) ? pv->containment()->screen() : -1);
QRect screenRect = screenGeometry(pv ? pv->screen() : -1);
//kDebug() << "==> rect for" << (pv ? pv->containment()->screen() : -1) << "is" << screenRect;
if (loc != LeftEdge && pos.x() + s.width() > screenRect.right()) {