Commit 4df41f1e authored by Thomas Zander's avatar Thomas Zander

Rename setShear() to shear()

Its not a setter, shear is an additive operation and there is no getter for it.

svn path=/trunk/koffice/; revision=1127435
parent 12ffe8c4
......@@ -242,7 +242,7 @@ void KoShape::rotate(qreal angle)
d->shapeChanged(RotationChanged);
}
void KoShape::setShear(qreal sx, qreal sy)
void KoShape::shear(qreal sx, qreal sy)
{
Q_D(KoShape);
QPointF pos = position();
......
......@@ -112,7 +112,7 @@ public:
PositionChanged, ///< used after a setPosition()
RotationChanged, ///< used after a setRotation()
ScaleChanged, ///< used after a setScale()
ShearChanged, ///< used after a setShear()
ShearChanged, ///< used after a shear()
SizeChanged, ///< used after a setSize()
GenericMatrixChange, ///< used after the matrix was changed without knowing which property explicitly changed
ParentChanged, ///< used after a setParent()
......@@ -231,7 +231,7 @@ public:
* @param sx shear in x direction
* @param sy shear in y direction
*/
void setShear(qreal sx, qreal sy);
void shear(qreal sx, qreal sy);
/**
* @brief Resize the shape
......
......@@ -61,7 +61,7 @@ void KoShapeShearCommand::redo()
QUndoCommand::redo();
for (int i = 0; i < d->shapes.count(); i++) {
d->shapes.at(i)->update();
d->shapes.at(i)->setShear(d->newShearXs.at(i), d->newShearYs.at(i));
d->shapes.at(i)->shear(d->newShearXs.at(i), d->newShearYs.at(i));
d->shapes.at(i)->update();
}
}
......@@ -71,7 +71,7 @@ void KoShapeShearCommand::undo()
QUndoCommand::undo();
for (int i = 0; i < d->shapes.count(); i++) {
d->shapes.at(i)->update();
d->shapes.at(i)->setShear(d->previousShearXs.at(i), d->previousShearYs.at(i));
d->shapes.at(i)->shear(d->previousShearXs.at(i), d->previousShearYs.at(i));
d->shapes.at(i)->update();
}
}
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