27 : m_connection(std::move(connection))
34 if (m_connection != connection) {
36 m_connection = std::move(connection);
Represents a connection to a signal.
void disconnect()
Disconnects from the signal.
bool isConnected() const noexcept
Check if connected to 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.
~ScopedConnection()
Destructor, automatically disconnects the connection.
void disconnect()
Manually disconnect the connection.
constexpr ScopedConnection() noexcept=default
bool isConnected() const noexcept
Check if the connection is connected to the signal.
ScopedConnection & operator=(const ScopedConnection &)=delete