36 if (m_connection != connection) {
represents a connection to a signal
void disconnect()
disconnects from the signal
Disconnects a Connection automatically upon destruction.
void release() noexcept
Release the connection so that it won't be disconnected when this ScopedConnection is destructed...
bool isConnected() const noexcept
Check if the connection is connected to the signal.
void disconnect()
Manually disconnect the connection.
ScopedConnection & operator=(const ScopedConnection &)=delete
constexpr ScopedConnection() noexcept=default
bool isConnected() const noexcept
check if connected to the signal
~ScopedConnection()
Destructor, automatically disconnects the connection.