7 #include "model/text.h" 33 const Text *
get()
const override;
34 bool isInEditMode()
const;
37 void setEditMode(
bool edit);
46 QVariant itemChange(GraphicsItemChange change,
const QVariant &value)
override;
56 void timerEvent(QTimerEvent *event)
override;
57 void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
override;
65 QPainterPath shape()
const override;
66 QRectF boundingRect()
const override;
67 void paint(QPainter*,
const QStyleOptionGraphicsItem*, QWidget*)
override;
81 void focusOutEvent(QFocusEvent *event)
override;
82 void keyPressEvent(QKeyEvent *event)
override;
94 void setParentItem(
GText *parent);
97 void paint(QPainter*,
const QStyleOptionGraphicsItem*, QWidget*)
override;
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
GCompositeObject * parentItem() const
Return the parent item cast to a GObject*.
A helper item for GText that displays its textual content.
Definition: gtext.h:76
A graphical text object that wraps a Text.
Definition: gtext.h:24
Object * obj
The object that is being wrapped.
Definition: gobject.h:177
The base class of all objects represented in a graphical scene.
Definition: gobject.h:24
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
void reloadFromModel() override
Update the graphical representation to match the object from the model.
void applyToModel() override
Apply changes to the underlying model object.
A visual text object.
Definition: text.h:17