QElectroTech
0.70
|
The AddElementTextCommand class Manage the adding of element text. More...
#include <addelementtextcommand.h>
Public Member Functions | |
AddElementTextCommand (Element *element, DynamicElementTextItem *deti, QUndoCommand *parent=nullptr) | |
~AddElementTextCommand () override | |
void | undo () override |
void | redo () override |
Private Attributes | |
Element * | m_element = nullptr |
DynamicElementTextItem * | m_text = nullptr |
The AddElementTextCommand class Manage the adding of element text.
Definition at line 33 of file addelementtextcommand.h.
AddElementTextCommand::AddElementTextCommand | ( | Element * | element, |
DynamicElementTextItem * | deti, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 31 of file addelementtextcommand.cpp.
References QET::Icons::tr.
|
override |
Definition at line 39 of file addelementtextcommand.cpp.
References Element::dynamicTextItems(), m_element, m_text, and DynamicElementTextItem::parentGroup().
|
override |
Definition at line 55 of file addelementtextcommand.cpp.
References Element::addDynamicTextItem(), m_element, and m_text.
|
override |
Definition at line 48 of file addelementtextcommand.cpp.
References m_element, m_text, and Element::removeDynamicTextItem().
|
private |
Definition at line 43 of file addelementtextcommand.h.
Referenced by redo(), undo(), and ~AddElementTextCommand().
|
private |
Definition at line 44 of file addelementtextcommand.h.
Referenced by redo(), undo(), and ~AddElementTextCommand().