|
Krita Source Code Documentation
|
#include <kis_signal_auto_connection.h>
Public Member Functions | |
| template<class Sender , class Signal , class Receiver , class Method > | |
| void | addConnection (Sender sender, Signal signal, Receiver receiver, Method method, Qt::ConnectionType type=Qt::AutoConnection) |
| template<class Sender , class Signal , class Receiver , class Method > | |
| void | addUniqueConnection (Sender sender, Signal signal, Receiver receiver, Method method) |
| void | clear () |
| bool | isEmpty () |
Private Attributes | |
| QVector< KisSignalAutoConnectionSP > | m_connections |
A class to store multiple connections and to be able to stop all of them at once. It is handy when you need to reconnect some other object to the current manager. Then you just call connectionsStore.clear() and then call addConnection() again to recreate them.
Definition at line 70 of file kis_signal_auto_connection.h.
|
inline |
Connects sender to receiver with a connection of type type. The connection is saved into the store so can be reset later with clear()
Definition at line 80 of file kis_signal_auto_connection.h.
References m_connections.
|
inline |
Convenience override for addConnection() that creates a unique connection
Definition at line 95 of file kis_signal_auto_connection.h.
References m_connections.
|
inline |
Disconnects all the stored connections and removes them from the store
Definition at line 106 of file kis_signal_auto_connection.h.
References m_connections.
|
inline |
Definition at line 110 of file kis_signal_auto_connection.h.
References m_connections.
|
private |
Definition at line 115 of file kis_signal_auto_connection.h.