The EmptyParentCommand class works almost exactly like the default QUndoCommand implementation, except that it sets itself obsolete if all of its children are obsolete. This way, command macros that do nothing will get removed.
More...
#include <emptyparentcommand.h>
|
void | redo () override |
|
void | undo () override |
|
|
static EmptyParentCommand * | make (const QString &text, QUndoCommand *parent=nullptr) |
| make Makes an empty parent command with the given text. More...
|
|
The EmptyParentCommand class works almost exactly like the default QUndoCommand implementation, except that it sets itself obsolete if all of its children are obsolete. This way, command macros that do nothing will get removed.
◆ make()
EmptyParentCommand * EmptyParentCommand::make |
( |
const QString & |
text, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
|
static |
make Makes an empty parent command with the given text.
- Parameters
-
text | The text of the command. |
parent | An optional parent command. |
- Returns
◆ redo()
void EmptyParentCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
void EmptyParentCommand::undo |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: