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:
@@ -737,7 +737,7 @@ bool StdIOSettings::isValid() const
|
||||
QVariantMap StdIOSettings::toMap() const
|
||||
{
|
||||
QVariantMap map = BaseSettings::toMap();
|
||||
map.insert(executableKey, m_executable.toVariant());
|
||||
map.insert(executableKey, m_executable.toSettings());
|
||||
map.insert(argumentsKey, m_arguments);
|
||||
return map;
|
||||
}
|
||||
@@ -745,7 +745,7 @@ QVariantMap StdIOSettings::toMap() const
|
||||
void StdIOSettings::fromMap(const QVariantMap &map)
|
||||
{
|
||||
BaseSettings::fromMap(map);
|
||||
m_executable = Utils::FilePath::fromVariant(map[executableKey]);
|
||||
m_executable = Utils::FilePath::fromSettings(map[executableKey]);
|
||||
m_arguments = map[argumentsKey].toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user