small changes that make the code more readable

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823769
This commit is contained in:
Aaron J. Seigo 2008-06-24 03:16:33 +00:00
parent 03d7946373
commit 8a974f0f46

View File

@ -1101,16 +1101,14 @@ void Containment::Private::positionToolBox()
}
}
} else {
QRectF r;
QDesktopWidget *desktop = QApplication::desktop();
r = desktop->availableGeometry(screen);
QRectF r = desktop->availableGeometry(screen);
if (q->view() && !q->view()->transform().isScaling()) {
toolBox->setPos(r.topRight());
} else {
toolBox->setPos(q->mapFromScene(QPointF(q->geometry().topRight())));
}
}
}
void Containment::Private::triggerShowAddWidgets()