Qx v0.6
Qt Extensions Library
|
The ScopedPropertyUpdateGroup class starts an update group when constructed and ends it when destroyed. More...
#include <qx/core/qx-property.h>
Public Member Functions | |
Q_NODISCARD_CTOR | ScopedPropertyUpdateGroup () |
~ScopedPropertyUpdateGroup () noexcept(false) | |
This class calls Qt::beginPropertyUpdateGroup() in its constructor and Qt::endPropertyUpdateGroup() in its destructor, making sure the latter function is reliably called even in the presence of early returns or thrown exceptions.
Note: Qx::endPropertyUpdateGroup() may re-throw exceptions thrown by binding evaluations. This means your application may crash (std::terminate() called) if another exception is causing ScopedPropertyUpdateGroup's destructor to be called during stack unwinding. If you expect exceptions from binding evaluations, use manual Qx::endPropertyUpdateGroup() calls and try/catch blocks.
|
inline |
|
inline |
Calls Qx::endPropertyUpdateGroup().