From d9f1421841d1cc06c79858185431f6eda402e2c1 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 1 Feb 2022 12:08:59 +0100 Subject: [PATCH] Manual test: Silence deprecation warning of proparser test with Qt6 Change-Id: I89fcc27e9d8f87fc35f677eea09a50ae3226a3a1 Reviewed-by: Christian Kandeler --- tests/manual/proparser/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/manual/proparser/main.cpp b/tests/manual/proparser/main.cpp index 74710314902..aed9eefc8d3 100644 --- a/tests/manual/proparser/main.cpp +++ b/tests/manual/proparser/main.cpp @@ -142,8 +142,13 @@ int main(int argc, char **argv) QMakeGlobals option; QString qmake = QString::fromLocal8Bit(qgetenv("TESTREADER_QMAKE")); - if (qmake.isEmpty()) + if (qmake.isEmpty()) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) qmake = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/qmake"); +#else + qmake = QLibraryInfo::path(QLibraryInfo::BinariesPath) + QLatin1String("/qmake"); +#endif + } option.qmake_abslocation = QDir::cleanPath(qmake); option.initProperties();