ExtensionSystem: Add settingspath to system information

This information is re-used inside the System Information dialog.

Change-Id: I71d2b9a1574ea1cd3f68349d974555ec5625f185
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2021-08-09 14:21:36 +02:00
parent 8d222e22d5
commit a5aef91411

View File

@@ -434,6 +434,10 @@ QString PluginManager::systemInformation()
result += QLatin1String(spec->isEffectivelyEnabled() ? "+ " : " ") + filled(spec->name(), size) +
" " + spec->version() + "\n";
}
QString settingspath = QFileInfo(settings()->fileName()).path();
if (settingspath.startsWith(QDir::homePath()))
settingspath.replace(QDir::homePath(), "~");
result += "\nUsed settingspath: " + settingspath + "\n";
return result;
}