aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsloggingutils.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2023-08-29 20:56:35 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2023-08-30 14:18:17 +0200
commit50f714789d43136ea2f8c29536b6b80d598e3b6f (patch)
treed5edca63a5e1a5de7848656c6cdadee5cb2b2d94 /src/qmlcompiler/qqmljsloggingutils.h
parente86a91dfd5535ce548618270343a2521fb0ef4c6 (diff)
QmlCompiler: Make LoggerCategory private again
It is not needed by the QQmlSA API. Additionally, remove the comparison operator for LoggerCategory and LoggerId, and replace its users by getting the id from the category before comparing. Pick-to: 6.6 Change-Id: I7747b09b941cfd5326b95d2ee2f78b0ee10991d3 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Semih Yavuz <semih.yavuz@qt.io> Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsloggingutils.h')
-rw-r--r--src/qmlcompiler/qqmljsloggingutils.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/qmlcompiler/qqmljsloggingutils.h b/src/qmlcompiler/qqmljsloggingutils.h
index caca28072c..0c11e03b87 100644
--- a/src/qmlcompiler/qqmljsloggingutils.h
+++ b/src/qmlcompiler/qqmljsloggingutils.h
@@ -17,7 +17,6 @@ class SourceLocation;
}
namespace QQmlJS {
-class LoggerCategoryPrivate;
class Q_QMLCOMPILER_EXPORT LoggerWarningId
{
@@ -39,41 +38,6 @@ private:
const QAnyStringView m_name;
};
-class Q_QMLCOMPILER_EXPORT LoggerCategory
-{
- Q_DECLARE_PRIVATE(LoggerCategory)
-
-public:
- LoggerCategory();
- LoggerCategory(QString name, QString settingsName, QString description, QtMsgType level,
- bool ignored = false, bool isDefault = false);
- LoggerCategory(const LoggerCategory &);
- LoggerCategory(LoggerCategory &&) noexcept;
- LoggerCategory &operator=(const LoggerCategory &);
- LoggerCategory &operator=(LoggerCategory &&) noexcept;
- ~LoggerCategory();
-
- QString name() const;
- QString settingsName() const;
- QString description() const;
- QtMsgType level() const;
- bool isIgnored() const;
- bool isDefault() const;
-
- LoggerWarningId id() const;
-
- void setLevel(QtMsgType);
- void setIgnored(bool);
-
- friend bool operator==(const LoggerCategory &category, const LoggerWarningId &warningId)
- {
- return category.name() == warningId.name();
- }
-
-private:
- std::unique_ptr<QQmlJS::LoggerCategoryPrivate> d_ptr;
-};
-
} // namespace QQmlJS
extern const Q_QMLCOMPILER_EXPORT QQmlJS::LoggerWarningId qmlRequired;