Commit fa5c238d authored by Sven Langkamp's avatar Sven Langkamp

add new change type for parameter changes, fixes updating after parameter...

add new change type for parameter changes, fixes updating after parameter change in Krita shape selections

svn path=/trunk/koffice/; revision=937513
parent 7e49cd98
......@@ -53,6 +53,7 @@ void KoParameterShape::moveHandle(int handleId, const QPointF & point, Qt::Keybo
updatePath(size());
update();
notifyChangedShape(ParameterChanged);
}
......
......@@ -1181,6 +1181,12 @@ void KoShape::notifyShapeChanged(KoShape * shape, ChangeType type)
Q_UNUSED(type);
}
void KoShape::notifyChangedShape(ChangeType type)
{
d->shapeChanged(type);
}
KoSnapData KoShape::snapData() const
{
return KoSnapData();
......
......@@ -117,7 +117,8 @@ public:
Deleted, ///< the shape was deleted
BorderChanged, ///< the shapes border has changed
BackgroundChanged, ///< the shapes background has changed
ShadowChanged ///< the shapes shadow has changed
ShadowChanged, ///< the shapes shadow has changed
ParameterChanged ///< the shapes parameter has changed (KoParameterShape only)
};
/**
......@@ -860,6 +861,12 @@ protected:
/// return the current matrix that contains the rotation/scale/position of this shape
const QMatrix& matrix() const;
/**
* Notify the shape that a change was done. To be used by inheriting shapes.
* @param type the change type
*/
void notifyChangedShape(ChangeType type);
private:
friend class KoShapeManager;
void addShapeManager(KoShapeManager * manager);
......
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