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:
@@ -139,14 +139,14 @@ bool JLSSettings::isValid() const
|
||||
QVariantMap JLSSettings::toMap() const
|
||||
{
|
||||
QVariantMap map = StdIOSettings::toMap();
|
||||
map.insert(languageServerKey, m_languageServer.toVariant());
|
||||
map.insert(languageServerKey, m_languageServer.toSettings());
|
||||
return map;
|
||||
}
|
||||
|
||||
void JLSSettings::fromMap(const QVariantMap &map)
|
||||
{
|
||||
StdIOSettings::fromMap(map);
|
||||
m_languageServer = FilePath::fromVariant(map[languageServerKey]);
|
||||
m_languageServer = FilePath::fromSettings(map[languageServerKey]);
|
||||
}
|
||||
|
||||
LanguageClient::BaseSettings *JLSSettings::copy() const
|
||||
|
||||
Reference in New Issue
Block a user