Commit 30555b5c authored by Thomas Zander's avatar Thomas Zander
Browse files

No need to make updateTree virtual; just stop adding the selection to

be managed in the manager its already a member of.

svn path=/trunk/koffice/; revision=619542
parent 896f4bd6
......@@ -105,9 +105,6 @@ public:
*/
KoShapeLayer* activeLayer() const;
protected:
virtual void updateTree() {}
signals:
/// emitted when the selection is changed
void selectionChanged();
......
......@@ -523,7 +523,7 @@ protected:
/**
* Update the position of the shape in the tree of the KoShapeManager.
*/
virtual void updateTree();
void updateTree();
/// Used by shapeChanged() to select which change was made
enum ChangeType {
......
......@@ -49,10 +49,8 @@ KoShapeManager::KoShapeManager(KoCanvasBase *canvas)
{
Q_ASSERT(m_canvas); // not optional.
connect( m_selection, SIGNAL(selectionChanged()), this, SIGNAL(selectionChanged()) );
m_selection->addShapeManager( this );
}
KoShapeManager::~KoShapeManager()
{
foreach(KoShape *shape, m_shapes)
......
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