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/client/QXmppClient.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/QXmppClient.h') diff --git a/src/client/QXmppClient.h b/src/client/QXmppClient.h index 4225ad09..1f6f206b 100644 --- a/src/client/QXmppClient.h +++ b/src/client/QXmppClient.h @@ -212,7 +212,7 @@ public: QXmppVersionManager &versionManager(); #endif -signals: +Q_SIGNALS: /// This signal is emitted when the client connects successfully to the /// XMPP server i.e. when a successful XMPP connection is established. @@ -274,7 +274,7 @@ signals: /// This signal is emitted when the client state changes. void stateChanged(QXmppClient::State state); -public slots: +public Q_SLOTS: void connectToServer(const QXmppConfiguration &, const QXmppPresence &initialPresence = QXmppPresence()); @@ -284,7 +284,7 @@ public slots: bool sendPacket(const QXmppStanza &); void sendMessage(const QString &bareJid, const QString &message); -private slots: +private Q_SLOTS: void _q_elementReceived(const QDomElement &element, bool &handled); void _q_reconnect(); void _q_socketStateChanged(QAbstractSocket::SocketState state); -- cgit v1.2.3