Fixed positioning of desktop containments' toolbox

BUG: 166770

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872129
This commit is contained in:
Guillaume Pothier 2008-10-16 11:47:03 +00:00
parent 771c946872
commit 7b201201b0

View File

@ -1511,6 +1511,10 @@ void ContainmentPrivate::positionToolBox()
QRectF avail = desktop->availableGeometry(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 (QApplication::layoutDirection() == Qt::RightToLeft) {