Utils: Pass settings key to BaseAspect::saveToMap

Makes the code on the user side somewhat more symmetric and is a
bit more flexible, even if that's not used right now.

Change-Id: I29a5182463ead0e4a39fcb51ecf4fdd5adf2a203
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-03-11 16:52:22 +01:00
parent 4cebde86da
commit d5dec08893
6 changed files with 13 additions and 14 deletions

View File

@@ -85,7 +85,7 @@ void BaseStringListAspect::fromMap(const QVariantMap &map)
void BaseStringListAspect::toMap(QVariantMap &data) const
{
saveToMap(data, m_value, QStringList());
saveToMap(data, m_value, QStringList(), settingsKey());
}
QStringList BaseStringListAspect::value() const