diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-02-01 12:08:59 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-02-02 10:58:22 +0000 |
commit | d9f1421841d1cc06c79858185431f6eda402e2c1 (patch) | |
tree | e4c9edfefc5dd1977774af5fe2909e943abe0246 /tests/manual/proparser | |
parent | 779c59a3e6fe6ac13427b6b07e6fa3e2c5bbe3a3 (diff) | |
download | qt-creator-d9f1421841d1cc06c79858185431f6eda402e2c1.tar.gz |
Manual test: Silence deprecation warning of proparser test with Qt6
Change-Id: I89fcc27e9d8f87fc35f677eea09a50ae3226a3a1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/manual/proparser')
-rw-r--r-- | tests/manual/proparser/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/manual/proparser/main.cpp b/tests/manual/proparser/main.cpp index 7471031490..aed9eefc8d 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(); |