#include <changevaluecommand.h>
|
void | redo () override |
|
void | undo () override |
|
|
template<typename Func > |
static ChangeValueCommand * | make (ValueType *variable, ValueType newValue, ValueType oldValue, const QString &text, Func postChangeFunc, QUndoCommand *parent=nullptr) |
| make Creates a change-value command. More...
|
|
template<typename Func > |
static ChangeValueCommand * | make (ValueType *variable, ValueType newValue, const QString &text, Func postChangeFunc, QUndoCommand *parent=nullptr) |
| make Creates a change-value command. More...
|
|
static ChangeValueCommand * | make (ValueType *variable, ValueType newValue, const QString &text, QUndoCommand *parent=nullptr) |
| make Creates a change-value command. More...
|
|
◆ make() [1/3]
template<typename ValueType >
template<typename Func >
static ChangeValueCommand* ChangeValueCommand< ValueType >::make |
( |
ValueType * |
variable, |
|
|
ValueType |
newValue, |
|
|
ValueType |
oldValue, |
|
|
const QString & |
text, |
|
|
Func |
postChangeFunc, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
|
inlinestatic |
make Creates a change-value command.
- Parameters
-
variable | The pointer to the variable that is modified. |
newValue | The variable's new value. |
oldValue | The variable's old value (sometimes the pre-action value doesn't match the current value). |
text | A short name or description (see QUndoCommand documentation). |
postChangeFunc | Action to perform after changing the variable. Should have no parameters and no return value. |
parent | The parent of the command. |
- Returns
- The command that was performed.
◆ make() [2/3]
template<typename ValueType >
template<typename Func >
static ChangeValueCommand* ChangeValueCommand< ValueType >::make |
( |
ValueType * |
variable, |
|
|
ValueType |
newValue, |
|
|
const QString & |
text, |
|
|
Func |
postChangeFunc, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
|
inlinestatic |
make Creates a change-value command.
- Parameters
-
variable | The pointer to the variable that is modified. |
newValue | The variable's new value. |
text | A short name or description (see QUndoCommand documentation). |
postChangeFunc | Action to perform after changing the variable. Should have no parameters and no return value. |
parent | The parent of the command. |
- Returns
- The command that was performed.
◆ make() [3/3]
template<typename ValueType >
make Creates a change-value command.
- Parameters
-
variable | The pointer to the variable that is modified. |
newValue | The variable's new value. |
text | A short name or description (see QUndoCommand documentation). |
parent | The parent of the command. |
- Returns
- The command that was performed.
◆ redo()
template<typename ValueType >
◆ undo()
template<typename ValueType >
The documentation for this class was generated from the following file: