Correct Qt version checks

This commit is contained in:
Bill Somerville
2020-11-03 23:44:07 +00:00
parent 50cce43e92
commit f4db2904a3
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -540,9 +540,9 @@ namespace NetworkMessage
// increment this if a newer Qt schema is required and add decode
// logic to the Builder and Reader class implementations
#if QT_VERSION >= 0x050400
#if QT_VERSION >= QT_VERSION_CHECK (5, 4, 0)
static quint32 constexpr schema_number {3};
#elif QT_VERSION >= 0x050200
#elif QT_VERSION >= QT_VERSION_CHECK (5, 2, 0)
static quint32 constexpr schema_number {2};
#else
// Schema 1 (Qt_5_0) is broken