From f8c546c5b701c53d708a38a951fcc734eaee7940 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 26 Oct 2019 18:53:23 +0200 Subject: Replace deprecated Q_ENUMS with Q_ENUM Q_ENUM exists since Qt 5.5, more details can be found here: https://woboq.com/blog/q_enum.html --- src/client/QXmppCallManager.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/client/QXmppCallManager.h') diff --git a/src/client/QXmppCallManager.h b/src/client/QXmppCallManager.h index 220bd31f..9f6290e4 100644 --- a/src/client/QXmppCallManager.h +++ b/src/client/QXmppCallManager.h @@ -53,7 +53,6 @@ class QXmppRtpVideoChannel; class QXMPP_EXPORT QXmppCall : public QXmppLoggable { Q_OBJECT - Q_ENUMS(Direction State) Q_FLAGS(QIODevice::OpenModeFlag QIODevice::OpenMode) Q_PROPERTY(Direction direction READ direction CONSTANT) Q_PROPERTY(QString jid READ jid CONSTANT) @@ -63,20 +62,20 @@ class QXMPP_EXPORT QXmppCall : public QXmppLoggable public: /// This enum is used to describe the direction of a call. - enum Direction - { + enum Direction { IncomingDirection, ///< The call is incoming. OutgoingDirection ///< The call is outgoing. }; + Q_ENUM(Direction) /// This enum is used to describe the state of a call. - enum State - { + enum State { ConnectingState = 0, ///< The call is being connected. ActiveState = 1, ///< The call is active. DisconnectingState = 2, ///< The call is being disconnected. FinishedState = 3 ///< The call is finished. }; + Q_ENUM(State) ~QXmppCall() override; -- cgit v1.2.3