don't update the position over and over again

svn path=/branches/KDE/4.4/kdelibs/; revision=1071894
This commit is contained in:
Marco Martin 2010-01-08 23:37:54 +00:00
parent 2ec16f9d26
commit 55838e20ec

View File

@ -411,6 +411,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();
@ -420,7 +426,6 @@ void InternalToolBox::setViewTransform(const QTransform &transform)
hideToolBox(); hideToolBox();
} }
} }
d->viewTransform = transform;
} }
void InternalToolBox::save(KConfigGroup &cg) const void InternalToolBox::save(KConfigGroup &cg) const