![]() |
libQuotient
A Qt library for building matrix clients
|
A guard pointer that disconnects an interested object upon destruction. More...
#include <qt_connection_util.h>
Public Member Functions | |
ConnectionsGuard (T *publisher, QObject *subscriber) | |
~ConnectionsGuard () | |
ConnectionsGuard (ConnectionsGuard &&)=default | |
ConnectionsGuard & | operator= (ConnectionsGuard &&)=default |
A guard pointer that disconnects an interested object upon destruction.
It's almost QPointer<> except that you have to initialise it with one more additional parameter - a pointer to a QObject that will be disconnected from signals of the underlying pointer upon the guard's destruction. Note that destructing the guard doesn't destruct either QObject.
Definition at line 48 of file qt_connection_util.h.
|
inline |
Definition at line 50 of file qt_connection_util.h.
|
inline |
Definition at line 53 of file qt_connection_util.h.
|
default |
|
default |