From 5e8bc07cb2ded1f5f74435411de666f419869514 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Thu, 18 Jan 2018 14:43:48 +0100 Subject: doc: Fix several minor qdoc warnings The fixes included undocumented enum values, which are now marked as omitted, adding a test for Q_CLANG_QDOC for a couple windows enum values, adding \fn commands for a pair of member functions in QLocale, and a \fn command for an obsolete function in QSqlError. Change-Id: I12a8ea7287039096b9cfe7870d2ab213a3d78dcf Reviewed-by: Edward Welbourne --- src/corelib/global/qnamespace.qdoc | 1 + src/corelib/io/qsettings.h | 2 +- src/corelib/tools/qlocale.cpp | 6 ++++++ src/sql/kernel/qsqlerror.cpp | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index 2828002183..2614a0bfd9 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -1338,6 +1338,7 @@ \omitvalue WA_WState_WindowOpacitySet \omitvalue WA_WState_AcceptedTouchBeginEvent \omitvalue WA_MacNoShadow + \omitvalue WA_ContentsMarginsRespectsSafeArea */ /*! \typedef Qt::HANDLE diff --git a/src/corelib/io/qsettings.h b/src/corelib/io/qsettings.h index f34e6bea1b..d78edd23a2 100644 --- a/src/corelib/io/qsettings.h +++ b/src/corelib/io/qsettings.h @@ -88,7 +88,7 @@ public: NativeFormat, IniFormat, -#ifdef Q_OS_WIN +#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC) Registry32Format, Registry64Format, #endif diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp index 6ae5a4162a..f7a6f35183 100644 --- a/src/corelib/tools/qlocale.cpp +++ b/src/corelib/tools/qlocale.cpp @@ -3806,6 +3806,12 @@ QString QLocale::toCurrencyString(double value, const QString &symbol, int preci return format.arg(str, sym); } +/*! + \fn QString QLocale::toCurrencyString(float i, const QString &symbol) const + \fn QString QLocale::toCurrencyString(float i, const QString &symbol, int precision) const + \overload toCurrencyString() +*/ + /*! \since 5.10 diff --git a/src/sql/kernel/qsqlerror.cpp b/src/sql/kernel/qsqlerror.cpp index 5ca5987e95..41ea497ad7 100644 --- a/src/sql/kernel/qsqlerror.cpp +++ b/src/sql/kernel/qsqlerror.cpp @@ -91,6 +91,7 @@ public: */ /*! + \fn QSqlError::QSqlError(const QString &driverText, const QString &databaseText, ErrorType type, int number) \obsolete Constructs an error containing the driver error text \a -- cgit v1.2.3