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:
@@ -80,7 +80,7 @@ QVariantMap QmlJSCodeStylePreferences::toMap() const
|
||||
return map;
|
||||
}
|
||||
|
||||
void QmlJSCodeStylePreferences::fromMap(const Storage &map)
|
||||
void QmlJSCodeStylePreferences::fromMap(const Store &map)
|
||||
{
|
||||
ICodeStylePreferences::fromMap(map);
|
||||
if (!currentDelegate())
|
||||
|
||||
@@ -25,8 +25,8 @@ public:
|
||||
// tracks parent hierarchy until currentParentSettings is null
|
||||
QmlJSCodeStyleSettings currentCodeStyleSettings() const;
|
||||
|
||||
Utils::Storage toMap() const override;
|
||||
void fromMap(const Utils::Storage &map) override;
|
||||
Utils::Store toMap() const override;
|
||||
void fromMap(const Utils::Store &map) override;
|
||||
|
||||
public slots:
|
||||
void setCodeStyleSettings(const QmlJSCodeStyleSettings &data);
|
||||
|
||||
@@ -34,7 +34,7 @@ QVariantMap QmlJSCodeStyleSettings::toMap() const
|
||||
};
|
||||
}
|
||||
|
||||
void QmlJSCodeStyleSettings::fromMap(const Storage &map)
|
||||
void QmlJSCodeStyleSettings::fromMap(const Store &map)
|
||||
{
|
||||
lineLength = map.value(lineLengthKey, lineLength).toInt();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "qmljstools_global.h"
|
||||
|
||||
#include <utils/storage.h>
|
||||
#include <utils/store.h>
|
||||
|
||||
#include <optional>
|
||||
|
||||
@@ -20,8 +20,8 @@ public:
|
||||
|
||||
int lineLength = 80;
|
||||
|
||||
Utils::Storage toMap() const;
|
||||
void fromMap(const Utils::Storage &map);
|
||||
Utils::Store toMap() const;
|
||||
void fromMap(const Utils::Store &map);
|
||||
|
||||
bool equals(const QmlJSCodeStyleSettings &rhs) const;
|
||||
bool operator==(const QmlJSCodeStyleSettings &s) const { return equals(s); }
|
||||
|
||||
Reference in New Issue
Block a user