Commit bc99d7a6 authored by Thomas Zander's avatar Thomas Zander

The collision detection failed when only changing the z-index. Lets fix that.

I needed to introduce a new member in KoShapeManager, so I immediately converted
it to use a d-pointer as that broke bin-compat anyway.

svn path=/trunk/koffice/; revision=634112
parent f1c91375
......@@ -455,6 +455,7 @@ const QBrush& KoShape::background () {
}
void KoShape::setZIndex(int zIndex) {
notifyChanged();
d->zIndex = zIndex;
}
......
This diff is collapsed.
......@@ -69,7 +69,7 @@ public:
void setShapes( const QList<KoShape *> &shapes );
/// returns the list of maintained shapes
const QList<KoShape *> & shapes() const { return m_shapes; }
const QList<KoShape *> & shapes() const;
/**
* Add a KoShape to be displayed and managed by this manager.
......@@ -84,7 +84,7 @@ public:
void remove(KoShape *shape);
/// return the selection shapes for this shapeManager
KoSelection * selection() const { return m_selection; }
KoSelection * selection() const;
/**
* Paint all shapes and their selection handles etc.
......@@ -146,12 +146,8 @@ signals:
void selectionChanged();
private:
QList<KoShape *> m_shapes;
KoSelection * m_selection;
KoCanvasBase * m_canvas;
KoRTree<KoShape *> m_tree;
QSet<KoShape *> m_aggregate4update;
class Private;
Private * const d;
};
#endif
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