|
Maki
Formally verified low-code orchestration
|
Command to rename a node on the canvas. More...
#include <rename_node.h>
Public Member Functions | |
| RenameNodeCommand (const QString &nodeId, const QString &oldName, const QString &newName, QUndoCommand *parent=nullptr) | |
| Constructs a RenameNodeCommand object. | |
| void | undo () override |
| Restores the original node name. | |
| void | redo () override |
| Applies the new node name. | |
Command to rename a node on the canvas.
| RenameNodeCommand::RenameNodeCommand | ( | const QString & | nodeId, |
| const QString & | oldName, | ||
| const QString & | newName, | ||
| QUndoCommand * | parent = nullptr ) |
Constructs a RenameNodeCommand object.
| nodeId | Unique identifier of the node. |
| oldName | Original name of the node. |
| newName | New name of the node. |
| parent | Parent undo command. |