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:
hjk
2023-08-23 16:53:06 +02:00
parent 14d21f4f2c
commit 6e307be365
181 changed files with 457 additions and 456 deletions

View File

@@ -70,12 +70,12 @@ void QmlMainFileAspect::addToLayout(Layouting::LayoutItem &parent)
parent.addItems({Tr::tr("Main QML file:"), m_fileListCombo.data()});
}
void QmlMainFileAspect::toMap(Storage &map) const
void QmlMainFileAspect::toMap(Store &map) const
{
map.insert(Constants::QML_MAINSCRIPT_KEY, m_scriptFile);
}
void QmlMainFileAspect::fromMap(const Storage &map)
void QmlMainFileAspect::fromMap(const Store &map)
{
m_scriptFile = map.value(Constants::QML_MAINSCRIPT_KEY, M_CURRENT_FILE).toString();

View File

@@ -43,8 +43,8 @@ public:
};
void addToLayout(Layouting::LayoutItem &parent) final;
void toMap(Utils::Storage &map) const final;
void fromMap(const Utils::Storage &map) final;
void toMap(Utils::Store &map) const final;
void fromMap(const Utils::Store &map) final;
void updateFileComboBox();
MainScriptSource mainScriptSource() const;

View File

@@ -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());

View File

@@ -23,8 +23,8 @@ public:
QString currentLocale() const;
void setCurrentLocale(const QString &locale);
Utils::FilePath databaseFilePath() const;
void toMap(Utils::Storage &map) const final;
void fromMap(const Utils::Storage &map) final;
void toMap(Utils::Store &map) const final;
void fromMap(const Utils::Store &map) final;
static QmlMultiLanguageAspect *current();
static QmlMultiLanguageAspect *current(ProjectExplorer::Project *project);

View File

@@ -89,7 +89,7 @@ void QmlProject::parsingFinished(const Target *target, bool success)
openFile(fileToOpen);
}
Project::RestoreResult QmlProject::fromMap(const Storage &map, QString *errorMessage)
Project::RestoreResult QmlProject::fromMap(const Store &map, QString *errorMessage)
{
RestoreResult result = Project::fromMap(map, errorMessage);
if (result != RestoreResult::Ok)

View File

@@ -24,7 +24,7 @@ public:
ProjectExplorer::Tasks projectIssues(const ProjectExplorer::Kit *k) const final;
protected:
RestoreResult fromMap(const Utils::Storage &map, QString *errorMessage) override;
RestoreResult fromMap(const Utils::Store &map, QString *errorMessage) override;
private:
ProjectExplorer::DeploymentKnowledge deploymentKnowledge() const override;