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:
@@ -24,7 +24,7 @@ FilePath PatchTool::patchCommand()
|
||||
QSettings *s = ICore::settings();
|
||||
|
||||
s->beginGroup(settingsGroupC);
|
||||
const FilePath command = FilePath::fromVariant(s->value(patchCommandKeyC, patchCommandDefaultC));
|
||||
const FilePath command = FilePath::fromSettings(s->value(patchCommandKeyC, patchCommandDefaultC));
|
||||
s->endGroup();
|
||||
|
||||
return command;
|
||||
@@ -34,7 +34,7 @@ void PatchTool::setPatchCommand(const FilePath &newCommand)
|
||||
{
|
||||
Utils::QtcSettings *s = ICore::settings();
|
||||
s->beginGroup(settingsGroupC);
|
||||
s->setValueWithDefault(patchCommandKeyC, newCommand.toVariant(), QVariant(QString(patchCommandDefaultC)));
|
||||
s->setValueWithDefault(patchCommandKeyC, newCommand.toSettings(), QVariant(QString(patchCommandDefaultC)));
|
||||
s->endGroup();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user