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-318.
static void changePassword(const QString &oldPassword, const QString &newPassword);
static void kickClient(int peerId);
static void changePassword(const QString &oldPassword, const QString &newPassword);
static void kickClient(int peerId);
+ void displayIgnoreList(QString ignoreRule) {
+ emit showIgnoreList(ignoreRule);
+ }
+
#if QT_VERSION < 0x050000
static void logMessage(QtMsgType type, const char *msg);
#else
#if QT_VERSION < 0x050000
static void logMessage(QtMsgType type, const char *msg);
#else
void ClientUserInputHandler::handleIgnore(const BufferInfo &bufferInfo, const QString &text)
{
if (text.isEmpty()) {
void ClientUserInputHandler::handleIgnore(const BufferInfo &bufferInfo, const QString &text)
{
if (text.isEmpty()) {
- emit Client::instance()->showIgnoreList("");
+ emit Client::instance()->displayIgnoreList("");
return;
}
// If rule contains no ! or @, we assume it is just a nickname, and turn it into an ignore rule for that nick
return;
}
// If rule contains no ! or @, we assume it is just a nickname, and turn it into an ignore rule for that nick