forked from qt-creator/qt-creator
Manual test: Silence deprecation warning of proparser test with Qt6
Change-Id: I89fcc27e9d8f87fc35f677eea09a50ae3226a3a1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user