make sure to reposition all the toolboxes on all screens when the zoom

level changes

svn path=/trunk/KDE/kdelibs/; revision=898482
This commit is contained in:
Marco Martin 2008-12-18 11:03:35 +00:00
parent ffead9de07
commit 3cab60d833

View File

@ -1044,6 +1044,9 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
//update the view transform of the toolbox, since it ignores transforms //update the view transform of the toolbox, since it ignores transforms
if (c && c->d->toolBox) { if (c && c->d->toolBox) {
if (c->d->toolBox->viewTransform().isScaling() && !v->transform().isScaling()) {
c->d->positionToolBox();
}
c->d->toolBox->setViewTransform(v->transform()); c->d->toolBox->setViewTransform(v->transform());
} }