forked from qt-creator/qt-creator
Use Utils::Storage instead of QVariantMap in a few places
Change-Id: I02833cf2bc3caaadc22ff93ae530e4aebe4c3868 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -19,9 +19,11 @@
|
||||
|
||||
static const char lineLengthKey[] = "LineLength";
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
namespace QmlJSTools {
|
||||
|
||||
// ------------------ QmlJSCodeStyleSettingsWidget
|
||||
// QmlJSCodeStyleSettings
|
||||
|
||||
QmlJSCodeStyleSettings::QmlJSCodeStyleSettings() = default;
|
||||
|
||||
@@ -32,7 +34,7 @@ QVariantMap QmlJSCodeStyleSettings::toMap() const
|
||||
};
|
||||
}
|
||||
|
||||
void QmlJSCodeStyleSettings::fromMap(const QVariantMap &map)
|
||||
void QmlJSCodeStyleSettings::fromMap(const Storage &map)
|
||||
{
|
||||
lineLength = map.value(lineLengthKey, lineLength).toInt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user