aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppLogger.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-02-11 21:03:10 +0100
committerLNJ <lnj@kaidan.im>2020-02-11 21:39:00 +0100
commitcf54ba0b26b913e2f87c102f736886687505174b (patch)
tree2e0de3bcc662f08e3cb129d37427a111f6823713 /src/base/QXmppLogger.h
parent279b92daac8eae020353b64b176cc0af800d3e6a (diff)
downloadqxmpp-cf54ba0b26b913e2f87c102f736886687505174b.tar.gz
Make QXmpp work with projects using QT_NO_KEYWORDS
This replaces all occurencies of 'slots' and 'signals' with 'Q_SLOTS' and 'Q_SIGNALS'. This allows for smooth integration with software projects that need QT_NO_KEYWORDS, such as those ones that rely on boost libraries. Closes #115. Co-authored-by: Tommaso Cucinotta <tommaso.cucinotta@santannapisa.it>
Diffstat (limited to 'src/base/QXmppLogger.h')
-rw-r--r--src/base/QXmppLogger.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/QXmppLogger.h b/src/base/QXmppLogger.h
index a1b62b5b..797592dd 100644
--- a/src/base/QXmppLogger.h
+++ b/src/base/QXmppLogger.h
@@ -100,14 +100,14 @@ public:
QXmppLogger::MessageTypes messageTypes();
void setMessageTypes(QXmppLogger::MessageTypes types);
-public slots:
+public Q_SLOTS:
virtual void setGauge(const QString &gauge, double value);
virtual void updateCounter(const QString &counter, qint64 amount);
void log(QXmppLogger::MessageType type, const QString &text);
void reopen();
-signals:
+Q_SIGNALS:
/// This signal is emitted whenever a log message is received.
void message(QXmppLogger::MessageType type, const QString &text);
@@ -177,7 +177,7 @@ protected:
emit logMessage(QXmppLogger::SentMessage, qxmpp_loggable_trace(message));
}
-signals:
+Q_SIGNALS:
/// Sets the given \a gauge to \a value.
void setGauge(const QString &gauge, double value);