From cf54ba0b26b913e2f87c102f736886687505174b Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Tue, 11 Feb 2020 21:03:10 +0100 Subject: 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 --- src/server/QXmppServer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/QXmppServer.h') diff --git a/src/server/QXmppServer.h b/src/server/QXmppServer.h index ce0e456a..36923c6c 100644 --- a/src/server/QXmppServer.h +++ b/src/server/QXmppServer.h @@ -97,7 +97,7 @@ public: void addIncomingClient(QXmppIncomingClient *stream); -signals: +Q_SIGNALS: /// This signal is emitted when a client has connected. void clientConnected(const QString &jid); @@ -107,10 +107,10 @@ signals: /// This signal is emitted when the logger changes. void loggerChanged(QXmppLogger *logger); -public slots: +public Q_SLOTS: void handleElement(const QDomElement &element); -private slots: +private Q_SLOTS: void _q_clientConnection(QSslSocket *socket); void _q_clientConnected(); void _q_clientDisconnected(); @@ -141,7 +141,7 @@ public: void setLocalCertificate(const QSslCertificate &certificate); void setPrivateKey(const QSslKey &key); -signals: +Q_SIGNALS: /// This signal is emitted when a new connection is established. void newConnection(QSslSocket *socket); -- cgit v1.2.3