From: Janne Koschinski Date: Wed, 11 Apr 2018 01:16:21 +0000 (+0200) Subject: Fix support for extended features on Qt4 X-Git-Tag: travis-deploy-test~130 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=ced382f4e6d6613151bdbf95c1569ca2c83da78e Fix support for extended features on Qt4 - On Qt4, Q_ENUMS can *not* handle enum class, but only enum - This patch adds an #ifdef to only use enum class on Qt5 Closes GH-352. --- diff --git a/src/common/quassel.h b/src/common/quassel.h index 135e8b5c..87d525f8 100644 --- a/src/common/quassel.h +++ b/src/common/quassel.h @@ -111,7 +111,11 @@ public: * * This list should be cleaned up after every protocol break, as we can assume them to be present then. */ - enum class Feature : quint32 { + #if QT_VERSION >= 0x050000 + enum class Feature : uint32_t { + #else + enum Feature { + #endif SynchronizedMarkerLine, SaslAuthentication, SaslExternal,