Use Utils::Storage instead of QVariantMap in a few places

Change-Id: I02833cf2bc3caaadc22ff93ae530e4aebe4c3868
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-08-23 16:11:48 +02:00
parent 55b5b8a975
commit dc6b40a5c0
191 changed files with 525 additions and 491 deletions

View File

@@ -66,6 +66,8 @@ constexpr char typedClientsKey[] = "typedClients";
constexpr char outlineSortedKey[] = "outlineSorted";
constexpr char mimeType[] = "application/language.client.setting";
using namespace Utils;
namespace LanguageClient {
class LanguageClientSettingsModel : public QAbstractListModel
@@ -576,7 +578,7 @@ QVariantMap BaseSettings::toMap() const
return map;
}
void BaseSettings::fromMap(const QVariantMap &map)
void BaseSettings::fromMap(const Storage &map)
{
m_name = map[nameKey].toString();
m_id = map.value(idKey, QUuid::createUuid().toString()).toString();
@@ -720,7 +722,7 @@ QVariantMap StdIOSettings::toMap() const
return map;
}
void StdIOSettings::fromMap(const QVariantMap &map)
void StdIOSettings::fromMap(const Storage &map)
{
BaseSettings::fromMap(map);
m_executable = Utils::FilePath::fromSettings(map[executableKey]);