diff options
| author | Linus Jahn <lnj@kaidan.im> | 2019-10-26 18:53:23 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2019-10-27 11:26:23 +0100 |
| commit | f8c546c5b701c53d708a38a951fcc734eaee7940 (patch) | |
| tree | 1c931fb34dfeb49d8a0a435bddf0dc6927c44f88 /src/base/QXmppLogger.h | |
| parent | 942b926b6e468524f410ceb8fc28ee28f60ad7ce (diff) | |
| download | qxmpp-f8c546c5b701c53d708a38a951fcc734eaee7940.tar.gz | |
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
Diffstat (limited to 'src/base/QXmppLogger.h')
| -rw-r--r-- | src/base/QXmppLogger.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/QXmppLogger.h b/src/base/QXmppLogger.h index 912dbd4c..80b9a221 100644 --- a/src/base/QXmppLogger.h +++ b/src/base/QXmppLogger.h @@ -45,7 +45,6 @@ class QXmppLoggerPrivate; class QXMPP_EXPORT QXmppLogger : public QObject { Q_OBJECT - Q_ENUMS(LoggingType) Q_FLAGS(MessageType MessageTypes) Q_PROPERTY(QString logFilePath READ logFilePath WRITE setLogFilePath) Q_PROPERTY(LoggingType loggingType READ loggingType WRITE setLoggingType) @@ -60,6 +59,7 @@ public: StdoutLogging = 2, ///< Log messages are written to the standard output SignalLogging = 4 ///< Log messages are emitted as a signal }; + Q_ENUM(LoggingType) /// This enum describes a type of log message. enum MessageType |
