Commit d9b62d53 authored by Thomas Zander's avatar Thomas Zander

Rename setScale() to scale()

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

svn path=/trunk/koffice/; revision=1127436
parent 4df41f1e
......@@ -74,7 +74,6 @@ void KoSelectionPrivate::requestSelectionChangedEvent()
void KoSelectionPrivate::selectionChangedEvent()
{
eventTriggered = false;
q->setScale(1, 1);
emit q->selectionChanged();
}
......
......@@ -214,7 +214,7 @@ void KoShape::paintDecorations(QPainter &painter, const KoViewConverter &convert
}*/
}
void KoShape::setScale(qreal sx, qreal sy)
void KoShape::scale(qreal sx, qreal sy)
{
Q_D(KoShape);
QPointF pos = position();
......
......@@ -111,7 +111,7 @@ public:
enum ChangeType {
PositionChanged, ///< used after a setPosition()
RotationChanged, ///< used after a setRotation()
ScaleChanged, ///< used after a setScale()
ScaleChanged, ///< used after a scale()
ShearChanged, ///< used after a shear()
SizeChanged, ///< used after a setSize()
GenericMatrixChange, ///< used after the matrix was changed without knowing which property explicitly changed
......@@ -206,7 +206,7 @@ public:
* @param sx scale in x direction
* @param sy scale in y direction
*/
void setScale(qreal sx, qreal sy);
void scale(qreal sx, qreal sy);
/**
* @brief Rotate the shape (relative)
......
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