4#ifndef QSCOPEDVALUEROLLBACK_H
5#define QSCOPEDVALUEROLLBACK_H
7#include <QtCore/qglobal.h>
17 : varRef(
var), oldValue(
var)
28#if __cpp_constexpr >= 201907L
33 varRef = std::move(oldValue);
constexpr void commit()
Updates the previous value of the managed variable to its current value.
~QScopedValueRollback()
Assigns the previous value to the managed variable.
Q_NODISCARD_CTOR constexpr QScopedValueRollback(T &var, T value)
Assigns value to \ var and stores the previous value of var internally, for revert on destruction.
Q_NODISCARD_CTOR constexpr QScopedValueRollback(T &var)
Stores the previous value of var internally, for revert on destruction.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]