forked from qt-creator/qt-creator
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:
@@ -35,13 +35,13 @@ bool DisplayName::usesDefaultValue() const
|
||||
return m_value.isEmpty();
|
||||
}
|
||||
|
||||
void DisplayName::toMap(QVariantMap &map, const QString &key) const
|
||||
void DisplayName::toMap(Storage &map, const QString &key) const
|
||||
{
|
||||
if (m_forceSerialization || !usesDefaultValue())
|
||||
map.insert(key, m_value);
|
||||
}
|
||||
|
||||
void DisplayName::fromMap(const QVariantMap &map, const QString &key)
|
||||
void DisplayName::fromMap(const Storage &map, const QString &key)
|
||||
{
|
||||
m_value = map.value(key).toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user