44 #ifndef VSI_ELEMENTAREA_HH 45 #define VSI_ELEMENTAREA_HH 48 #include <QGraphicsItem> 65 Q_INTERFACES(QGraphicsItem)
85 const QList<SceneElement *>&
elements ()
const;
88 void paint (QPainter * ,
const QStyleOptionGraphicsItem * , QWidget * = 0) {};
93 QList<SceneElement *> elements_;
95 QRectF elementsBoundingRect_;
void addElement(SceneElement *_element)
Add a child element.
~ElementArea()
Destructor.
QRectF boundingRect() const
Bounding rectangle.
ElementArea(GraphicsScene *_scene)
Constructor.
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *=0)
for QGraphicsItem
const QList< SceneElement * > & elements() const
All elements.
bool removeElement(SceneElement *_element, bool _force=false)
Remove an element, if its removeable or _force is set.