|
KDStateMachineEditor API Documentation 2.3
|
This is the inverse operation to the KDSME::CreateElementCommand command. More...
#include <deleteelementcommand_p.h>


Public Member Functions | |
| DeleteElementCommand (StateMachineScene *scene, Element *deletedElement, QUndoCommand *parent=nullptr) | |
| ~DeleteElementCommand () | |
| int | id () const override |
| void | redo () override |
| void | undo () override |
Public Member Functions inherited from KDSME::Command | |
| Command (const QString &text=QString(), QUndoCommand *parent=nullptr) | |
| Command (StateModel *model, QUndoCommand *parent=nullptr) | |
| StateModel * | model () const |
Additional Inherited Members | |
Public Types inherited from KDSME::Command | |
| enum | Id { CreateElement = 0 , DeleteElement , ReparentElement , LayoutSnapshot , ModifyProperty , ModifyInitialState , ModifyDefaultState , ModifyElement , ModifyTransition , ChangeStateMachine } |
This is the inverse operation to the KDSME::CreateElementCommand command.
On redo it removes an element from the model, but still keeping a reference on it. On undo this element is registered in the model again.
Definition at line 35 of file deleteelementcommand_p.h.
|
explicit |
Definition at line 27 of file deleteelementcommand.cpp.
| DeleteElementCommand::~DeleteElementCommand | ( | ) |
Definition at line 37 of file deleteelementcommand.cpp.
|
inlineoverride |
Definition at line 43 of file deleteelementcommand_p.h.
|
override |
Definition at line 42 of file deleteelementcommand.cpp.
References KDSME::ObjectTreeModel::indexForObject(), and KDSME::Command::model().
|
override |
Definition at line 59 of file deleteelementcommand.cpp.
References KDSME::Command::model().