doc: Correct remaining qdoc warnings in qchar.h and qchar.cpp

Several enum values had to be given \value statements, and a
member function only visible for Windows had to become visible
to clang-qdoc.

Change-Id: I47fbbcf9c5e4333abd13a041ce8fee2c13f9541d
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Martin Smith 2018-01-03 14:19:03 +01:00
parent 66a0fecfae
commit dd3f7c5f2b
2 changed files with 13 additions and 1 deletions

View File

@ -186,6 +186,8 @@ QT_BEGIN_NAMESPACE
\value Unicode_6_3 Version 6.3 Since Qt 5.3
\value Unicode_7_0 Version 7.0 Since Qt 5.5
\value Unicode_8_0 Version 8.0 Since Qt 5.6
\value Unicode_9_0 Version 9.0 Since Qt 5.11
\value Unicode_10_0 Version 10.0 Since Qt 5.11
\value Unicode_Unassigned The value is not assigned to any character
in version 8.0 of Unicode.
@ -414,6 +416,16 @@ QT_BEGIN_NAMESPACE
\value Script_Multani
\value Script_OldHungarian
\value Script_SignWriting
\value Script_Adlam
\value Script_Bhaiksuki
\value Script_Marchen
\value Script_Newa
\value Script_Osage
\value Script_Tangut
\value Script_MasaramGondi
\value Script_Nushu
\value Script_Soyombo
\value Script_ZanabazarSquare
\omitvalue ScriptCount

View File

@ -89,7 +89,7 @@ public:
#if defined(Q_COMPILER_UNICODE_STRINGS)
Q_DECL_CONSTEXPR QChar(char16_t ch) Q_DECL_NOTHROW : ucs(ushort(ch)) {} // implicit
#endif
#if defined(Q_OS_WIN)
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
Q_STATIC_ASSERT(sizeof(wchar_t) == sizeof(ushort));
Q_DECL_CONSTEXPR QChar(wchar_t ch) Q_DECL_NOTHROW : ucs(ushort(ch)) {} // implicit
#endif