Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlformatsettings.cpp
Go to the documentation of this file.
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// Qt-Security score:significant
4
6
7QQmlFormatSettings::QQmlFormatSettings(const QString &toolName) : QQmlToolingSettings(toolName)
8{
9 addOption(s_useTabsSetting, false);
10 addOption(s_indentWidthSetting, 4);
11 addOption(s_maxColumnWidthSetting, -1);
12 addOption(s_normalizeSetting, false);
13 addOption(s_newlineSetting, QStringLiteral("native"));
14 addOption(s_objectsSpacingSetting, false);
15 addOption(s_functionsSpacingSetting, false);
16 addOption(s_sortImportsSetting, false);
17 addOption(s_singleLineEmptyObjectsSetting, false);
18 addOption(s_semiColonRuleSetting, QStringLiteral("always"));
19}