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:
@@ -583,7 +583,7 @@ void BaseAspect::saveToMap(QVariantMap &data, const QVariant &value,
|
||||
/*!
|
||||
Retrieves the internal value of this BaseAspect from the QVariantMap \a map.
|
||||
*/
|
||||
void BaseAspect::fromMap(const Storage &map)
|
||||
void BaseAspect::fromMap(const Store &map)
|
||||
{
|
||||
if (settingsKey().isEmpty())
|
||||
return;
|
||||
@@ -594,7 +594,7 @@ void BaseAspect::fromMap(const Storage &map)
|
||||
/*!
|
||||
Stores the internal value of this BaseAspect into the QVariantMap \a map.
|
||||
*/
|
||||
void BaseAspect::toMap(Storage &map) const
|
||||
void BaseAspect::toMap(Store &map) const
|
||||
{
|
||||
if (settingsKey().isEmpty())
|
||||
return;
|
||||
@@ -692,13 +692,13 @@ public:
|
||||
class CheckableAspectImplementation
|
||||
{
|
||||
public:
|
||||
void fromMap(const Storage &map)
|
||||
void fromMap(const Store &map)
|
||||
{
|
||||
if (m_checked)
|
||||
m_checked->fromMap(map);
|
||||
}
|
||||
|
||||
void toMap(Storage &map)
|
||||
void toMap(Store &map)
|
||||
{
|
||||
if (m_checked)
|
||||
m_checked->toMap(map);
|
||||
@@ -921,7 +921,7 @@ void StringAspect::setValueAcceptor(StringAspect::ValueAcceptor &&acceptor)
|
||||
/*!
|
||||
\reimp
|
||||
*/
|
||||
void StringAspect::fromMap(const Storage &map)
|
||||
void StringAspect::fromMap(const Store &map)
|
||||
{
|
||||
if (!settingsKey().isEmpty())
|
||||
setValue(map.value(settingsKey(), defaultValue()).toString(), BeQuiet);
|
||||
@@ -931,7 +931,7 @@ void StringAspect::fromMap(const Storage &map)
|
||||
/*!
|
||||
\reimp
|
||||
*/
|
||||
void StringAspect::toMap(Storage &map) const
|
||||
void StringAspect::toMap(Store &map) const
|
||||
{
|
||||
saveToMap(map, value(), defaultValue(), settingsKey());
|
||||
d->m_checkerImpl.toMap(map);
|
||||
@@ -1440,7 +1440,7 @@ void FilePathAspect::addToLayout(Layouting::LayoutItem &parent)
|
||||
/*!
|
||||
\reimp
|
||||
*/
|
||||
void FilePathAspect::fromMap(const Storage &map)
|
||||
void FilePathAspect::fromMap(const Store &map)
|
||||
{
|
||||
if (!settingsKey().isEmpty())
|
||||
setValue(map.value(settingsKey(), defaultValue()).toString(), BeQuiet);
|
||||
@@ -1450,7 +1450,7 @@ void FilePathAspect::fromMap(const Storage &map)
|
||||
/*!
|
||||
\reimp
|
||||
*/
|
||||
void FilePathAspect::toMap(Storage &map) const
|
||||
void FilePathAspect::toMap(Store &map) const
|
||||
{
|
||||
saveToMap(map, value(), defaultValue(), settingsKey());
|
||||
d->m_checkerImpl.toMap(map);
|
||||
@@ -2514,7 +2514,7 @@ const QList<BaseAspect *> &AspectContainer::aspects() const
|
||||
return d->m_items;
|
||||
}
|
||||
|
||||
void AspectContainer::fromMap(const Storage &map)
|
||||
void AspectContainer::fromMap(const Store &map)
|
||||
{
|
||||
for (BaseAspect *aspect : std::as_const(d->m_items))
|
||||
aspect->fromMap(map);
|
||||
@@ -2523,7 +2523,7 @@ void AspectContainer::fromMap(const Storage &map)
|
||||
|
||||
}
|
||||
|
||||
void AspectContainer::toMap(Storage &map) const
|
||||
void AspectContainer::toMap(Store &map) const
|
||||
{
|
||||
for (BaseAspect *aspect : std::as_const(d->m_items))
|
||||
aspect->toMap(map);
|
||||
|
||||
Reference in New Issue
Block a user