5 #include "model/rect.h" 7 #include <QGraphicsRectItem> 21 const Rect *
get()
const override;
24 QRectF boundingRect()
const override;
25 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget)
override;
26 QPainterPath shape()
const override;
void handleChanged(GObjectHandle *handle) override
Called when a handle's position has changed.
A visual rectangle object.
Definition: rect.h:14
void reloadFromModel() override
Object * obj
The object that is being wrapped.
Definition: gobject.h:177
void showHandles(bool show=true) override
Display/hide the handles for this item.
The base class of all objects represented in a graphical scene.
Definition: gobject.h:24
Graphical rectangle object that wraps a Rect.
Definition: grect.h:13
The base class for object handles.
Definition: gobject.h:194
void applyToModel() override