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 ...@@ -50,6 +50,7 @@ void KoParameterShape::moveHandle(int handleId, const QPointF & point, Qt::Keybo
kWarning(30006) << "handleId out of bounds"; kWarning(30006) << "handleId out of bounds";
return; return;
} }
Q_D(KoParameterShape);
update(); update();
// function to do special stuff // function to do special stuff
...@@ -57,7 +58,7 @@ void KoParameterShape::moveHandle(int handleId, const QPointF & point, Qt::Keybo ...@@ -57,7 +58,7 @@ void KoParameterShape::moveHandle(int handleId, const QPointF & point, Qt::Keybo
updatePath(size()); updatePath(size());
update(); update();
notifyChangedShape(ParameterChanged); d->shapeChanged(ParameterChanged);
} }
......
...@@ -1321,12 +1321,6 @@ void KoShape::shapeChanged(ChangeType type, KoShape *shape) ...@@ -1321,12 +1321,6 @@ void KoShape::shapeChanged(ChangeType type, KoShape *shape)
Q_UNUSED(shape); Q_UNUSED(shape);
} }
void KoShape::notifyChangedShape(ChangeType type)
{
Q_D(KoShape);
d->shapeChanged(type);
}
KoSnapData KoShape::snapData() const KoSnapData KoShape::snapData() const
{ {
return KoSnapData(); return KoSnapData();
......
...@@ -920,12 +920,6 @@ protected: ...@@ -920,12 +920,6 @@ protected:
/// return the current matrix that contains the rotation/scale/position of this shape /// return the current matrix that contains the rotation/scale/position of this shape
const QMatrix& matrix() const; 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; KoShapePrivate *d_ptr;
private: private:
......
...@@ -26,6 +26,10 @@ class KoShapePrivate ...@@ -26,6 +26,10 @@ class KoShapePrivate
public: public:
KoShapePrivate(KoShape *shape); KoShapePrivate(KoShape *shape);
virtual ~KoShapePrivate(); 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); void shapeChanged(KoShape::ChangeType type);
QSizeF size; // size in pt 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