fix positioning

svn path=/branches/KDE/4.4/kdelibs/; revision=1072154
This commit is contained in:
Marco Martin 2010-01-09 13:45:28 +00:00
parent 55838e20ec
commit b24cb0ce38

View File

@ -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);