Fixed positioning of desktop containments' toolbox
BUG: 166770 svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872129
This commit is contained in:
parent
771c946872
commit
7b201201b0
@ -1511,6 +1511,10 @@ void ContainmentPrivate::positionToolBox()
|
|||||||
QRectF avail = desktop->availableGeometry(screen);
|
QRectF avail = desktop->availableGeometry(screen);
|
||||||
QRectF screenGeom = desktop->screenGeometry(screen);
|
QRectF screenGeom = desktop->screenGeometry(screen);
|
||||||
|
|
||||||
|
// Transform to the containment's coordinate system.
|
||||||
|
avail.translate(-screenGeom.topLeft());
|
||||||
|
screenGeom.moveTo(0, 0);
|
||||||
|
|
||||||
if (q->view() && !q->view()->transform().isScaling()) {
|
if (q->view() && !q->view()->transform().isScaling()) {
|
||||||
|
|
||||||
if (QApplication::layoutDirection() == Qt::RightToLeft) {
|
if (QApplication::layoutDirection() == Qt::RightToLeft) {
|
||||||
|
Loading…
Reference in New Issue
Block a user