don't reposition over and over again

svn path=/trunk/KDE/kdelibs/; revision=1071890
This commit is contained in:
Marco Martin 2010-01-08 23:36:43 +00:00
parent 9685752853
commit 8f19e5f9cb

View File

@ -409,6 +409,12 @@ InternalToolBox::Corner InternalToolBox::corner() const
void InternalToolBox::setViewTransform(const QTransform &transform)
{
if (d->viewTransform == transform) {
return;
}
d->viewTransform = transform;
if (transform.isScaling()) {
d->toolbar = true;
showToolBox();
@ -418,7 +424,6 @@ void InternalToolBox::setViewTransform(const QTransform &transform)
hideToolBox();
}
}
d->viewTransform = transform;
}
void InternalToolBox::save(KConfigGroup &cg) const