mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Connection guard, only valid signal connections will be added
This commit is contained in:
@@ -50,10 +50,10 @@ namespace BlackMisc
|
||||
~CConnectionGuard();
|
||||
|
||||
//! Add connection
|
||||
void append(const QMetaObject::Connection &connection);
|
||||
bool append(const QMetaObject::Connection &connection);
|
||||
|
||||
//! Add connections
|
||||
void append(const QList<QMetaObject::Connection> &connections);
|
||||
bool append(const QList<QMetaObject::Connection> &connections);
|
||||
|
||||
//! Disconnect all
|
||||
int disconnectAll();
|
||||
@@ -61,6 +61,6 @@ namespace BlackMisc
|
||||
private:
|
||||
QList<QMetaObject::Connection> m_connections;
|
||||
};
|
||||
} // BlackMisc
|
||||
} // ns
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user