In Qt4, signals are protected, therefore we can’t emit a signal on
Client from the ClientUserInputHandler.
Therefore we wrap the signal emitter with a function on the Client.
Closes GH-320.
#endif
static inline const QString &debugLog() { return instance()->_debugLogBuffer; }
+ void displayChannelList(NetworkId networkId) {
+ emit showChannelList(networkId);
+ }
+
signals:
void requestNetworkStates();
void ClientUserInputHandler::handleList(const BufferInfo &bufferInfo, const QString &text)
{
- emit Client::instance()->showChannelList(bufferInfo.networkId());
+ Client::instance()->displayChannelList(bufferInfo.networkId());
}