forked from qt-creator/qt-creator
Utils: Rename the new Storage to Store
Apparently that's what the young people on the web use for such a thing. Change-Id: I75d5396ff3cb3c26efd6008b5f2261354c4f7896 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -105,14 +105,14 @@ Utils::FilePath QmlMultiLanguageAspect::databaseFilePath() const
|
||||
return m_databaseFilePath;
|
||||
}
|
||||
|
||||
void QmlMultiLanguageAspect::toMap(Storage &map) const
|
||||
void QmlMultiLanguageAspect::toMap(Store &map) const
|
||||
{
|
||||
BoolAspect::toMap(map);
|
||||
if (!m_currentLocale.isEmpty())
|
||||
map.insert(Constants::LAST_USED_LANGUAGE, m_currentLocale);
|
||||
}
|
||||
|
||||
void QmlMultiLanguageAspect::fromMap(const Storage &map)
|
||||
void QmlMultiLanguageAspect::fromMap(const Store &map)
|
||||
{
|
||||
BoolAspect::fromMap(map);
|
||||
setCurrentLocale(map.value(Constants::LAST_USED_LANGUAGE, "en").toString());
|
||||
|
||||
Reference in New Issue
Block a user