diff options
| author | Topi Reinio <topi.reinio@qt.io> | 2025-03-06 13:15:17 +0000 |
|---|---|---|
| committer | Topi Reinio <topi.reinio@qt.io> | 2025-03-06 18:23:05 +0000 |
| commit | f1862814b0c6f7bdd304119270fc7554411ff598 (patch) | |
| tree | 991a2c7effe86bc0cb7c9fae91c11eab0bcd08c0 /src/qmlcompiler/qqmljsloggingutils.cpp | |
| parent | 2b3dc2a9757f8e33230f07aac11add285a96789d (diff) | |
Doc: Fix issues with \fn signatures
Move QQmlSA::LoggerWarningId function documentation out of the
QQmlJS namespace, as that causes match failures with QDoc.
Qualify QQmlSA::Method and Element \fn signatures with the correct
scope to help QDoc match them.
Task-number: QTBUG-134250
Pick-to: 6.9 6.8
Change-Id: I89407afe251158d99a93f44c25bb6db1a83a6024
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsloggingutils.cpp')
| -rw-r--r-- | src/qmlcompiler/qqmljsloggingutils.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/qmlcompiler/qqmljsloggingutils.cpp b/src/qmlcompiler/qqmljsloggingutils.cpp index e265e8c2c3..5a75fb7a59 100644 --- a/src/qmlcompiler/qqmljsloggingutils.cpp +++ b/src/qmlcompiler/qqmljsloggingutils.cpp @@ -10,6 +10,24 @@ QT_BEGIN_NAMESPACE using namespace Qt::StringLiterals; +/*! + \class QQmlSA::LoggerWarningId + \inmodule QtQmlCompiler + + \brief A wrapper around a string literal to uniquely identify + warning categories in the \c{QQmlSA} framework. +*/ + +/*! + \fn QQmlSA::LoggerWarningId::LoggerWarningId(QAnyStringView name) + Constructs a LoggerWarningId object with logging catergory name \a name. +*/ + +/*! + \fn QAnyStringView QQmlSA::LoggerWarningId::name() const + Returns the name of the wrapped warning category. +*/ + namespace QQmlJS { LoggerCategory::LoggerCategory() : d_ptr{ new LoggerCategoryPrivate } { } @@ -127,24 +145,6 @@ LoggerCategoryPrivate *LoggerCategoryPrivate::get(LoggerCategory *loggerCategory return loggerCategory->d_func(); } -/*! - \class QQmlSA::LoggerWarningId - \inmodule QtQmlCompiler - - \brief A wrapper around a string literal to uniquely identify - warning categories in the \c{QQmlSA} framework. -*/ - -/*! - \fn constexpr LoggerWarningId::LoggerWarningId(QAnyStringView name) - Constructs a LoggerWarningId object with logging catergory name \a name. - */ - -/*! - \fn QAnyStringView LoggerWarningId::name() const - Returns the name of the wrapped warning category. - */ - namespace LoggingUtils { QString levelToString(const QQmlJS::LoggerCategory &category) |
