Qx v0.6
Qt Extensions Library
|
The PropertyNotifier class controls the lifecycle of a change callback installed on a Property. More...
#include <qx/core/qx-property.h>
Public Member Functions | |
PropertyNotifier (PropertyNotifier &&other) noexcept | |
~PropertyNotifier () | |
PropertyNotifier & | operator= (PropertyNotifier &&other) noexcept |
Friends | |
template<typename T > | |
class | AbstractBindableProperty |
An instance of this class is created when registering a callback on a Property to be notified when the property's value changes, as long as a "lifetime" registration method wasn't used. When that instance instance is destroyed, the callback is unregistered from the property.
Instances of PropertyNotifier can be transferred between C++ scopes using move semantics.
|
noexcept |
Move constructs a PropertyNotifier from other.
Qx::PropertyNotifier::~PropertyNotifier | ( | ) |
Destroys the notifier, unregistering the callback associated with it from the property the callback was installed on.
|
noexcept |
Move assigns the PropertyNotifier from other.