From 2c1d53204d3e8eafc337c778e0f70d90f6b28141 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 5 May 2010 20:00:36 +0000 Subject: [PATCH] SVN_SILENT: tidying svn path=/trunk/KDE/kdelibs/; revision=1123295 --- corona.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/corona.cpp b/corona.cpp index eeeb91bd5..460823652 100644 --- a/corona.cpp +++ b/corona.cpp @@ -740,6 +740,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig } break; } + switch (loc) { case BottomEdge: pos.setY(v->geometry().y() - s.height()); @@ -770,7 +771,6 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig QRect screenRect = screenGeometry(screen); //kDebug() << "==> rect for" << screen << "is" << screenRect; - if (loc != LeftEdge && pos.x() + s.width() > screenRect.right()) { pos.rx() -= ((pos.x() + s.width()) - screenRect.right()); } @@ -780,7 +780,6 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig } pos.rx() = qMax(0, pos.x()); - return pos; }