don't update the position over and over again
svn path=/branches/KDE/4.4/kdelibs/; revision=1071894
This commit is contained in:
parent
2ec16f9d26
commit
55838e20ec
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user