Files
qt-creator/src/plugins/qmljstools/qmljscodestylesettings.h
hjk 6e307be365 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>
2023-08-24 05:56:57 +00:00

37 lines
920 B
C++

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "qmljstools_global.h"
#include <utils/store.h>
#include <optional>
namespace TextEditor { class TabSettings; }
namespace QmlJSTools {
class QMLJSTOOLS_EXPORT QmlJSCodeStyleSettings
{
public:
QmlJSCodeStyleSettings();
int lineLength = 80;
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); }
bool operator!=(const QmlJSCodeStyleSettings &s) const { return !equals(s); }
static QmlJSCodeStyleSettings currentGlobalCodeStyle();
static TextEditor::TabSettings currentGlobalTabSettings();
};
} // namespace CppEditor
Q_DECLARE_METATYPE(QmlJSTools::QmlJSCodeStyleSettings)