treat desktop location as bottom edge

swap edge only when the location is left or right
fixes tooltip position for things in desktop, like Folder icons

BUG:337112
This commit is contained in:
Marco Martin 2014-07-09 11:38:13 +02:00
parent 445331bba8
commit 11311f61e9

View File

@ -677,7 +677,7 @@ QPoint Dialog::popupPosition(QQuickItem *item, const QSize &size)
if (dialogPos.x() < avail.left()) {
// popup hits lhs
if (d->location == Plasma::Types::TopEdge || d->location == Plasma::Types::BottomEdge) {
if (d->location != Plasma::Types::LeftEdge || d->location == Plasma::Types::RightEdge) {
// move it
dialogPos.setX(avail.left());
} else {