42 #ifndef QSCOPEDVALUEROLLBACK_H 43 #define QSCOPEDVALUEROLLBACK_H 45 #include <QtCore/qglobal.h> 81 #endif // QSCOPEDVALUEROLLBACK_H #define QT_END_NAMESPACE
This macro expands to.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
~QScopedValueRollback()
Assigns the previous value to the managed variable.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void commit()
Updates the previous value of the managed variable to its current value.
The QScopedValueRollback class resets a variable to its previous value on destruction.
QScopedValueRollback(T &var)
Stores the previous value of var internally, for revert on destruction.