forked from qt-creator/qt-creator
BaseQtVersion: remove qmakeProperty(...) getter
Qt 6 will not use qmake to identify a Qt version, so this can not be part of the public interface of BaseQtVersion anymore. Provide getters for the information actually read via qmakeProperty(...). Use the getters whenever possible. Change-Id: Iadbee80b75e4f8b06caf90e7ed69fae2029b4dd7 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -76,15 +76,15 @@ static QStringList searchPaths(Kit *kit)
|
||||
if (!qtVersion)
|
||||
return {};
|
||||
|
||||
const QDir pluginDir(qtVersion->qmakeProperty("QT_INSTALL_PLUGINS"));
|
||||
const QDir pluginDir(qtVersion->pluginPath().toString());
|
||||
const QStringList pluginSubDirs = pluginDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||
|
||||
QStringList searchPaths;
|
||||
|
||||
for (const QString &dir : pluginSubDirs)
|
||||
searchPaths << qtVersion->qmakeProperty("QT_INSTALL_PLUGINS") + '/' + dir;
|
||||
searchPaths << qtVersion->pluginPath().toString() + '/' + dir;
|
||||
|
||||
searchPaths << qtVersion->qmakeProperty("QT_INSTALL_LIBS");
|
||||
searchPaths << qtVersion->libraryPath().toString();
|
||||
searchPaths << qtVersion->qnxTarget().pathAppended(qtVersion->cpuDir() + "/lib").toString();
|
||||
searchPaths << qtVersion->qnxTarget().pathAppended(qtVersion->cpuDir() + "/usr/lib").toString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user