50 #ifndef VSI_ELEMENTAREA_HH 51 #define VSI_ELEMENTAREA_HH 54 #include <QGraphicsItem> 71 Q_INTERFACES(QGraphicsItem)
91 const QList<SceneElement *>&
elements ()
const;
94 void paint (QPainter * ,
const QStyleOptionGraphicsItem * , QWidget * = 0) {};
99 QList<SceneElement *> elements_;
101 QRectF elementsBoundingRect_;
bool removeElement(SceneElement *_element, bool _force=false)
Remove an element, if its removeable or _force is set.
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *=0)
for QGraphicsItem
void addElement(SceneElement *_element)
Add a child element.
QRectF boundingRect() const
Bounding rectangle.
ElementArea(GraphicsScene *_scene)
Constructor.
~ElementArea()
Destructor.
const QList< SceneElement * > & elements() const
All elements.