2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2022-04-02 12:15:26 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "qmljstools_global.h"
|
|
|
|
|
|
|
|
|
|
#include <QGroupBox>
|
|
|
|
|
|
2022-08-16 17:16:47 +02:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QSpinBox;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2022-04-02 12:15:26 +02:00
|
|
|
namespace QmlJSTools {
|
|
|
|
|
class QmlJSCodeStyleSettings;
|
|
|
|
|
|
2022-08-16 17:16:47 +02:00
|
|
|
class QMLJSTOOLS_EXPORT QmlJSCodeStyleSettingsWidget : public QWidget
|
2022-04-02 12:15:26 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
enum CodingStyleLink {
|
|
|
|
|
CppLink,
|
|
|
|
|
QtQuickLink
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
explicit QmlJSCodeStyleSettingsWidget(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
|
|
QmlJSCodeStyleSettings codeStyleSettings() const;
|
|
|
|
|
|
|
|
|
|
void setCodingStyleWarningVisible(bool visible);
|
|
|
|
|
void setCodeStyleSettings(const QmlJSCodeStyleSettings& s);
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void settingsChanged(const QmlJSCodeStyleSettings &);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void slotSettingsChanged();
|
|
|
|
|
void codingStyleLinkActivated(const QString &linkString);
|
|
|
|
|
|
2022-08-16 17:16:47 +02:00
|
|
|
QSpinBox *m_lineLengthSpinBox;
|
2022-04-02 12:15:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace QmlJSTools
|