forked from qt-creator/qt-creator
Utils: Rename most FilePath::{from,to}Variant uses to {from,to}Settings
Specifies the main purpose more clearly. The remaining ones a "true" (internal) variants in models and as action data. Change-Id: I8dd3c846e419f29d88283c2f48268ef6685b19fe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -126,8 +126,8 @@ void ClangToolsSettings::readSettings()
|
||||
|
||||
QSettings *s = Core::ICore::settings();
|
||||
s->beginGroup(Constants::SETTINGS_ID);
|
||||
m_clangTidyExecutable = FilePath::fromVariant(s->value(clangTidyExecutableKey));
|
||||
m_clazyStandaloneExecutable = FilePath::fromVariant(s->value(clazyStandaloneExecutableKey));
|
||||
m_clangTidyExecutable = FilePath::fromSettings(s->value(clangTidyExecutableKey));
|
||||
m_clazyStandaloneExecutable = FilePath::fromSettings(s->value(clazyStandaloneExecutableKey));
|
||||
m_diagnosticConfigs.append(diagnosticConfigsFromSettings(s));
|
||||
|
||||
QVariantMap map;
|
||||
@@ -159,8 +159,8 @@ void ClangToolsSettings::writeSettings()
|
||||
QSettings *s = Core::ICore::settings();
|
||||
s->beginGroup(Constants::SETTINGS_ID);
|
||||
|
||||
s->setValue(clangTidyExecutableKey, m_clangTidyExecutable.toVariant());
|
||||
s->setValue(clazyStandaloneExecutableKey, m_clazyStandaloneExecutable.toVariant());
|
||||
s->setValue(clangTidyExecutableKey, m_clangTidyExecutable.toSettings());
|
||||
s->setValue(clazyStandaloneExecutableKey, m_clazyStandaloneExecutable.toSettings());
|
||||
diagnosticConfigsToSettings(s, m_diagnosticConfigs);
|
||||
|
||||
QVariantMap map;
|
||||
|
||||
Reference in New Issue
Block a user