2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2012-03-02 16:26:22 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-12-07 15:05:02 +01:00
|
|
|
|
2016-05-19 12:25:16 +02:00
|
|
|
#include "texteditor_global.h"
|
2011-12-07 15:05:02 +01:00
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QSettings;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2016-05-19 12:25:16 +02:00
|
|
|
namespace TextEditor {
|
2011-12-07 15:05:02 +01:00
|
|
|
|
2016-05-19 12:25:16 +02:00
|
|
|
class TEXTEDITOR_EXPORT CommentsSettings
|
2011-12-07 15:05:02 +01:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CommentsSettings();
|
|
|
|
|
|
2016-05-19 12:25:16 +02:00
|
|
|
void toSettings(QSettings *s) const;
|
|
|
|
|
void fromSettings(QSettings *s);
|
2011-12-07 15:05:02 +01:00
|
|
|
|
|
|
|
|
bool equals(const CommentsSettings &other) const;
|
|
|
|
|
|
2021-12-06 05:11:04 +01:00
|
|
|
friend bool operator==(const CommentsSettings &a, const CommentsSettings &b)
|
|
|
|
|
{ return a.equals(b); }
|
|
|
|
|
|
|
|
|
|
friend bool operator!=(const CommentsSettings &a, const CommentsSettings &b)
|
|
|
|
|
{ return !(a == b); }
|
|
|
|
|
|
2011-12-07 15:05:02 +01:00
|
|
|
bool m_enableDoxygen;
|
|
|
|
|
bool m_generateBrief;
|
|
|
|
|
bool m_leadingAsterisks;
|
|
|
|
|
};
|
|
|
|
|
|
2016-05-19 12:25:16 +02:00
|
|
|
} // namespace TextEditor
|