Commit 078ee8ad authored by Thomas Zander's avatar Thomas Zander

Remove public API for internal method.

The method can now be called using the shared d-pointer.

svn path=/trunk/koffice/; revision=994452
parent 0ae8d14d
......@@ -50,6 +50,7 @@ void KoParameterShape::moveHandle(int handleId, const QPointF & point, Qt::Keybo
kWarning(30006) << "handleId out of bounds";
return;
}
Q_D(KoParameterShape);
update();
// function to do special stuff
......@@ -57,7 +58,7 @@ void KoParameterShape::moveHandle(int handleId, const QPointF & point, Qt::Keybo
updatePath(size());
update();
notifyChangedShape(ParameterChanged);
d->shapeChanged(ParameterChanged);
}
......
......@@ -1321,12 +1321,6 @@ void KoShape::shapeChanged(ChangeType type, KoShape *shape)
Q_UNUSED(shape);
}
void KoShape::notifyChangedShape(ChangeType type)
{
Q_D(KoShape);
d->shapeChanged(type);
}
KoSnapData KoShape::snapData() const
{
return KoSnapData();
......
......@@ -920,12 +920,6 @@ 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);
KoShapePrivate *d_ptr;
private:
......
......@@ -26,6 +26,10 @@ class KoShapePrivate
public:
KoShapePrivate(KoShape *shape);
virtual ~KoShapePrivate();
/**
* Notify the shape that a change was done. To be used by inheriting shapes.
* @param type the change type
*/
void shapeChanged(KoShape::ChangeType type);
QSizeF size; // size in pt
......
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