QElectroTech
0.70
|
The AddItemCommand class This command add an item in a diagram The item to add is template, but must be QGraphicsItem or derived. More...
#include <diagramcommands.h>
Public Member Functions | |
AddItemCommand (QGI item, Diagram *diagram, const QPointF &pos=QPointF(), QUndoCommand *parent=nullptr) | |
~AddItemCommand () override | |
void | undo () override |
void | redo () override |
Private Attributes | |
QGI | m_item |
Diagram * | m_diagram |
QPointF | m_pos |
The AddItemCommand class This command add an item in a diagram The item to add is template, but must be QGraphicsItem or derived.
Definition at line 42 of file diagramcommands.h.
|
inline |
Definition at line 44 of file diagramcommands.h.
References itemText(), AddItemCommand< QGI >::m_diagram, AddItemCommand< QGI >::m_item, and QET::Icons::tr.
|
inlineoverride |
Definition at line 54 of file diagramcommands.h.
References AddItemCommand< QGI >::m_diagram, and AddItemCommand< QGI >::m_item.
|
inlineoverride |
Definition at line 64 of file diagramcommands.h.
References AddItemCommand< QGI >::m_diagram, AddItemCommand< QGI >::m_item, and AddItemCommand< QGI >::m_pos.
|
inlineoverride |
Definition at line 58 of file diagramcommands.h.
References AddItemCommand< QGI >::m_diagram, and AddItemCommand< QGI >::m_item.
|
private |
Definition at line 73 of file diagramcommands.h.
Referenced by AddItemCommand< QGI >::AddItemCommand(), AddItemCommand< QGI >::redo(), AddItemCommand< QGI >::undo(), and AddItemCommand< QGI >::~AddItemCommand().
|
private |
Definition at line 72 of file diagramcommands.h.
Referenced by AddItemCommand< QGI >::AddItemCommand(), AddItemCommand< QGI >::redo(), AddItemCommand< QGI >::undo(), and AddItemCommand< QGI >::~AddItemCommand().
|
private |
Definition at line 74 of file diagramcommands.h.
Referenced by AddItemCommand< QGI >::redo().