18#ifndef QETGRAPHICSITEM_H
19#define QETGRAPHICSITEM_H
23#include <QGraphicsObject>
38 virtual void setPos (
const QPointF &p);
39 virtual void setPos (qreal x, qreal y);
48 virtual QString
name ()
const
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
Definition qetgraphicsitem.h:28
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
QetGraphicsItem::mouseReleaseEvent handle mouse release click.
Definition qetgraphicsitem.cpp:155
virtual void setMovable(bool movable)
Definition qetgraphicsitem.h:43
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
Definition qetgraphicsitem.cpp:103
virtual void editProperty()
Definition qetgraphicsitem.h:47
bool snap_to_grid_
Definition qetgraphicsitem.h:65
QET::GraphicsItemState state() const
QetGraphicsItem::state.
Definition qetgraphicsitem.cpp:75
virtual QString name() const
Definition qetgraphicsitem.h:48
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
Definition qetgraphicsitem.cpp:163
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Definition qetgraphicsitem.cpp:85
QET::GraphicsItemState m_state
Definition qetgraphicsitem.h:67
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Definition qetgraphicsitem.cpp:114
virtual void setPos(const QPointF &p)
Definition qetgraphicsitem.cpp:50
virtual bool isMovable() const
Definition qetgraphicsitem.h:41
bool m_hovered
Definition qetgraphicsitem.h:70
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
Definition qetgraphicsitem.cpp:169
bool isHovered() const
Definition qetgraphicsitem.cpp:67
QPointF m_mouse_to_origin_movement
Definition qetgraphicsitem.h:66
~QetGraphicsItem() override=0
Definition qetgraphicsitem.cpp:34
bool m_first_move
Definition qetgraphicsitem.h:64
Diagram * diagram() const
Definition qetgraphicsitem.cpp:41
bool is_movable_
Definition qetgraphicsitem.h:63
GraphicsItemState
Definition qet.h:34
@ GIOK
General state.
Definition qet.h:35