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