fix positioning
svn path=/branches/KDE/4.4/kdelibs/; revision=1072154
This commit is contained in:
parent
55838e20ec
commit
b24cb0ce38
@ -597,13 +597,12 @@ void DesktopToolBox::showToolBox()
|
||||
|
||||
//could that cast ever fail?
|
||||
if (d->containment) {
|
||||
topRight = viewTransform().map(mapFromParent(d->containment->boundingRect().bottomRight()));
|
||||
topRight = d->containment->geometry().bottomRight();
|
||||
} else {
|
||||
topRight = boundingRect().topRight();
|
||||
}
|
||||
|
||||
|
||||
d->toolBacker->setPos(topRight.x() - d->toolBacker->size().width(), topRight.y());
|
||||
d->toolBacker->setPos(viewTransform().map(mapFromScene(topRight))-QPoint(d->toolBacker->size().width(), 0));
|
||||
} else {
|
||||
//kDebug() << "starting at" << x << startY;
|
||||
d->toolBacker->setPos(x, y);
|
||||
|
Loading…
Reference in New Issue
Block a user