25 Q_FOREACH (
KoShape *shape, ownedShapes) {
55 parent->model()->shapeHasBeenAddedToHierarchy(shape, parent);
63 parent->model()->shapeToBeRemovedFromHierarchy(shape, parent);
virtual void childChanged(KoShape *shape, KoShape::ChangeType type)
virtual void proposeMove(KoShape *shape, QPointF &move)
KoShapeContainerModel()
default constructor
virtual void shapeToBeRemovedFromHierarchy(KoShape *shape, KoShapeContainer *removedFromSubtree)
virtual int count() const =0
virtual void shapeHasBeenAddedToHierarchy(KoShape *shape, KoShapeContainer *addedToSubtree)
virtual ~KoShapeContainerModel()
destructor
virtual QList< KoShape * > shapes() const =0
KoShapeContainerModel * model
KoShapeContainer * parent() const
ChangeType
Used by shapeChanged() to select which change was made.
@ ChildChanged
a child of a container was changed/removed. This is propagated to all parents
void setParent(KoShapeContainer *parent)
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)