forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user