Commit 50e45415 authored by Thomas Zander's avatar Thomas Zander

Also notify the container when any type of matrix manipulation is made using...

Also notify the container when any type of matrix manipulation is made using the public api methods.

svn path=/trunk/koffice/; revision=691477
parent f026945d
......@@ -283,12 +283,14 @@ void KoShape::applyTransformation( const QMatrix &matrix )
QMatrix transformMatrix = globalMatrix * matrix * globalMatrix.inverted();
d->localMatrix = transformMatrix * d->localMatrix;
notifyChanged();
d->shapeChanged(GenericMatrixChange);
}
void KoShape::setTransformation( const QMatrix &matrix )
{
d->localMatrix = matrix;
notifyChanged();
d->shapeChanged(GenericMatrixChange);
}
bool KoShape::compareShapeZIndex(KoShape *s1, KoShape *s2) {
......
......@@ -89,6 +89,7 @@ public:
ScaleChanged, ///< used after a setScale()
ShearChanged, ///< used after a setShear()
SizeChanged, ///< used after a setSize()
GenericMatrixChange, ///< used after the matrix was changed without knowing which property explicitly changed
ParentChanged, ///< used after a setParent()
CollisionDetected ///< used when another shape moved in our boundingrect
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment