The DependentUndoCommand class is used to make an empty undo command that obsoletes itself when any of the dependencies are destructed. This is used to help avoid crashes.
More...
#include <dependentundocommand.h>
|
void | redo () override |
|
void | undo () override |
|
|
static DependentUndoCommand * | make (QVector< QObject *> dependencies, const QString &text="", QUndoCommand *parent=nullptr) |
|
The DependentUndoCommand class is used to make an empty undo command that obsoletes itself when any of the dependencies are destructed. This is used to help avoid crashes.
Make this command the parent of any other command.
◆ make()
DependentUndoCommand * DependentUndoCommand::make |
( |
QVector< QObject *> |
dependencies, |
|
|
const QString & |
text = "" , |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
|
static |
◆ redo()
void DependentUndoCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
void DependentUndoCommand::undo |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: