| 1 | // Copyright (C) 2023 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QQMLFORMATSETTINGS_P_H |
| 5 | #define QQMLFORMATSETTINGS_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtQmlToolingSettings/private/qqmltoolingsettings_p.h> |
| 19 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class QQmlFormatSettings : public QQmlToolingSettings |
| 23 | { |
| 24 | public: |
| 25 | QQmlFormatSettings(const QString &toolName = QLatin1String("qmlformat")); |
| 26 | static const inline QLatin1StringView s_useTabsSetting = QLatin1String("UseTabs"); |
| 27 | static const inline QLatin1StringView s_indentWidthSetting = QLatin1String("IndentWidth"); |
| 28 | static const inline QLatin1StringView s_maxColumnWidthSetting = QLatin1String("MaxColumnWidth"); |
| 29 | static const inline QLatin1StringView s_normalizeSetting = QLatin1String("NormalizeOrder"); |
| 30 | static const inline QLatin1StringView s_newlineSetting = QLatin1String("NewlineType"); |
| 31 | static const inline QLatin1StringView s_objectsSpacingSetting = QLatin1String("ObjectsSpacing"); |
| 32 | static const inline QLatin1StringView s_functionsSpacingSetting = QLatin1String("FunctionsSpacing"); |
| 33 | static const inline QLatin1StringView s_sortImportsSetting = QLatin1String("SortImports"); |
| 34 | static const inline QLatin1StringView s_semiColonRuleSetting = QLatin1String("SemicolonRule"); |
| 35 | }; |
| 36 | |
| 37 | QT_END_NAMESPACE |
| 38 | #endif // QQMLFORMATSETTINGS_P_H |
| 39 |
