Merge remote-tracking branch 'origin/11.0'

Change-Id: Ibe5040142ca38fed77ffed163212baf22592e392
This commit is contained in:
Eike Ziller
2023-08-04 14:57:29 +02:00
6 changed files with 51 additions and 17 deletions

View File

@@ -54,6 +54,12 @@ CMakeSpecificSettings::CMakeSpecificSettings()
// never save this to the settings:
ninjaPath.setToSettingsTransformation(
[](const QVariant &) { return QVariant::fromValue(QString()); });
ninjaPath.setFromSettingsTransformation([](const QVariant &from) {
// Sometimes the installer appends the same ninja path to the qtcreator.ini file
const QString path = from.canConvert<QStringList>() ? from.toStringList().last()
: from.toString();
return FilePath::fromUserInput(path).toVariant();
});
packageManagerAutoSetup.setSettingsKey("PackageManagerAutoSetup");
packageManagerAutoSetup.setDefaultValue(true);