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_;
ElementArea(GraphicsScene *_scene)
Constructor.
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *=0)
for QGraphicsItem
QRectF boundingRect() const
Bounding rectangle.
void addElement(SceneElement *_element)
Add a child element.
~ElementArea()
Destructor.
bool removeElement(SceneElement *_element, bool _force=false)
Remove an element, if its removeable or _force is set.
const QList< SceneElement * > & elements() const
All elements.