From d704cf932229bf90d92e05e68ff862944bc4167e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 18 Nov 2023 06:16:06 +0200 Subject: [PATCH] Fix compatibility with old compilers. --- src/app/tape/tkmmainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/tape/tkmmainwindow.cpp b/src/app/tape/tkmmainwindow.cpp index 436103e7c..8e33c10a1 100644 --- a/src/app/tape/tkmmainwindow.cpp +++ b/src/app/tape/tkmmainwindow.cpp @@ -44,7 +44,6 @@ #include "dialogs/dialogknownmeasurementscsvcolumns.h" #include "knownmeasurements/vknownmeasurements.h" #include "mapplication.h" // Should be last because of definning qApp -#include "quuid.h" #include "ui_tkmmainwindow.h" #include @@ -61,6 +60,7 @@ #include #include #include +#include #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #include "../vmisc/vtextcodec.h" @@ -68,6 +68,10 @@ #include #endif +#if QT_VERSION < QT_VERSION_CHECK(5, 7, 0) +#include "../vmisc/backport/qoverload.h" +#endif // QT_VERSION < QT_VERSION_CHECK(5, 7, 0) + #if (defined(Q_CC_GNU) && Q_CC_GNU < 409) && !defined(Q_CC_CLANG) // DO NOT WORK WITH GCC 4.8 #else