From dc6800b745cd6d635a1bd4b960030236bdab5383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=BCller-Guthof?= Date: Fri, 9 Jul 2021 17:44:30 +0200 Subject: [PATCH] Add support for Qt versions < 5.9 Qt versions prior to Qt 5.9 do not have the qmlWarning(). For those versions redefine qmlWarning() to call qmlInfo() instead. --- filters/filtercontainer.cpp | 4 ++++ sorters/sortercontainer.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/filters/filtercontainer.cpp b/filters/filtercontainer.cpp index 5bba02d..2e21151 100644 --- a/filters/filtercontainer.cpp +++ b/filters/filtercontainer.cpp @@ -2,6 +2,10 @@ #include "filter.h" #include +#if (QT_VERSION < QT_VERSION_CHECK(5, 9, 0)) +#define qmlWarning(me) qmlInfo(me) +#endif + namespace qqsfpm { /*! diff --git a/sorters/sortercontainer.cpp b/sorters/sortercontainer.cpp index f986e37..d934425 100644 --- a/sorters/sortercontainer.cpp +++ b/sorters/sortercontainer.cpp @@ -2,6 +2,10 @@ #include "sorter.h" #include +#if (QT_VERSION < QT_VERSION_CHECK(5, 9, 0)) +#define qmlWarning(me) qmlInfo(me) +#endif + namespace qqsfpm { /*!