- 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.
*
* This list should be cleaned up after every protocol break, as we can assume them to be present then.
*/
*
* 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,
SynchronizedMarkerLine,
SaslAuthentication,
SaslExternal,