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:
@@ -157,7 +157,7 @@ void GitLabParameters::toSettings(QSettings *s) const
|
||||
|
||||
writeTokensFile(tokensFilePath(s), gitLabServers);
|
||||
s->beginGroup(settingsGroupC);
|
||||
s->setValue(curlKeyC, curl.toVariant());
|
||||
s->setValue(curlKeyC, curl.toSettings());
|
||||
s->setValue(defaultUuidKeyC, defaultGitLabServer.toSetting());
|
||||
s->endGroup();
|
||||
}
|
||||
@@ -165,7 +165,7 @@ void GitLabParameters::toSettings(QSettings *s) const
|
||||
void GitLabParameters::fromSettings(const QSettings *s)
|
||||
{
|
||||
const QString rootKey = QLatin1String(settingsGroupC) + '/';
|
||||
curl = Utils::FilePath::fromVariant(s->value(rootKey + curlKeyC));
|
||||
curl = Utils::FilePath::fromSettings(s->value(rootKey + curlKeyC));
|
||||
defaultGitLabServer = Utils::Id::fromSetting(s->value(rootKey + defaultUuidKeyC));
|
||||
|
||||
gitLabServers = readTokensFile(tokensFilePath(s));
|
||||
|
||||
Reference in New Issue
Block a user