Walls And Holes  1
DependentUndoCommand Class Reference

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>

Inheritance diagram for DependentUndoCommand:
Collaboration diagram for DependentUndoCommand:

Public Member Functions

void redo () override
 
void undo () override
 

Static Public Member Functions

static DependentUndoCommandmake (QVector< QObject *> dependencies, const QString &text="", QUndoCommand *parent=nullptr)
 

Detailed Description

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.

Member Function Documentation

◆ make()

DependentUndoCommand * DependentUndoCommand::make ( QVector< QObject *>  dependencies,
const QString &  text = "",
QUndoCommand *  parent = nullptr 
)
static
Here is the caller graph for this function:

◆ redo()

void DependentUndoCommand::redo ( )
override

◆ undo()

void DependentUndoCommand::undo ( )
override

The documentation for this class was generated from the following files: