when the view is not zoomed move the toolbox to avoid the panels
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=811374
This commit is contained in:
parent
1ff027988b
commit
bc1688ae41
@ -1046,9 +1046,16 @@ void Containment::Private::positionToolBox()
|
|||||||
toolBox->setPos(q->geometry().width(), q->geometry().height()/2 - toolBox->boundingRect().height()/2);
|
toolBox->setPos(q->geometry().width(), q->geometry().height()/2 - toolBox->boundingRect().height()/2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
QRectF r;
|
||||||
|
QDesktopWidget *desktop = QApplication::desktop();
|
||||||
|
r = desktop->availableGeometry(screen);
|
||||||
|
if (q->view() && !q->view()->transform().isScaling()) {
|
||||||
|
toolBox->setPos(r.topRight());
|
||||||
} else {
|
} else {
|
||||||
toolBox->setPos(q->mapFromScene(QPointF(q->geometry().topRight())));
|
toolBox->setPos(q->mapFromScene(QPointF(q->geometry().topRight())));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user