From 0999cdcba2fca558896761d1c7f27d248e11761e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 30 May 2020 17:06:06 +0200 Subject: [PATCH] Fixed Qt version with time zones support + reverted broken Qt version check for opengl --- gpxsee.pro | 7 ++++--- src/common/config.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gpxsee.pro b/gpxsee.pro index 321dde77..e3a034cb 100644 --- a/gpxsee.pro +++ b/gpxsee.pro @@ -14,7 +14,8 @@ greaterThan(QT_MAJOR_VERSION, 4) { QT += widgets QT += printsupport } -lessThan(QT_VERSION, 5.4.0) {QT += opengl} +lessThan(QT_MAJOR_VERSION, 5) {QT += opengl} +equals(QT_MAJOR_VERSION, 5) : lessThan(QT_MINOR_VERSION, 4) {QT += opengl} INCLUDEPATH += ./src HEADERS += src/common/config.h \ @@ -196,7 +197,7 @@ HEADERS += src/common/config.h \ src/data/cupparser.h \ src/data/gpiparser.h \ src/data/address.h \ - src/data/smlparser.h + src/data/smlparser.h SOURCES += src/main.cpp \ src/GUI/popup.cpp \ src/common/coordinates.cpp \ @@ -347,7 +348,7 @@ greaterThan(QT_MAJOR_VERSION, 4) { HEADERS += src/data/geojsonparser.h SOURCES += src/data/geojsonparser.cpp } -greaterThan(QT_VERSION, 5.1.0) { +equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 4) { HEADERS += src/GUI/timezoneinfo.h } diff --git a/src/common/config.h b/src/common/config.h index 50c4f8b1..17e13bba 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -18,8 +18,8 @@ #define ENABLE_GEOJSON #endif // QT >= 5.0 -#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) #define ENABLE_TIMEZONES -#endif // QT >= 5.2 +#endif // QT >= 5.5 #endif /* CONFIG_H */