Skip to content

Commit

Permalink
Docs: fix qdoc enum's \value "since" syntax
Browse files Browse the repository at this point in the history
Square brackets.
https://doc.qt.io/qt-6/10-qdoc-commands-tablesandlists.html#value

Change-Id: I1d9237461a4eafb72b28ae019c02ba72f82d0f17
Reviewed-by: Thiago Macieira <[email protected]>
(cherry picked from commit 9b44acf)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
  • Loading branch information
Ahmad Samir authored and Qt Cherry-pick Bot committed Jan 24, 2025
1 parent acbfeca commit 2a734e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/corelib/kernel/qmetatype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ const char *QtMetaTypePrivate::typedefNameForType(const QtPrivate::QMetaTypeInte
The enum describes attributes of a type supported by QMetaType.
\value NeedsConstruction This type has a default constructor. If the flag is not set, instances can be safely initialized with memset to 0.
\value NeedsCopyConstruction (since 6.5) This type has a non-trivial copy constructor. If the flag is not set, instances can be copied with memcpy.
\value NeedsMoveConstruction (since 6.5) This type has a non-trivial move constructor. If the flag is not set, instances can be moved with memcpy.
\value [since 6.5] NeedsCopyConstruction This type has a non-trivial copy constructor. If the flag is not set, instances can be copied with memcpy.
\value [since 6.5] NeedsMoveConstruction This type has a non-trivial move constructor. If the flag is not set, instances can be moved with memcpy.
\value NeedsDestruction This type has a non-trivial destructor. If the flag is not set, calls to the destructor are not necessary before discarding objects.
\value RelocatableType An instance of a type having this attribute can be safely moved to a different memory location using memcpy.
\omitvalue MovableType
Expand Down
2 changes: 1 addition & 1 deletion src/gui/kernel/qplatformintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ QPlatformServices *QPlatformIntegration::services() const
prerequisite for dynamic OpenGL loading. Starting with Qt 5.7, the platform plugin
is required to have this capability.
\value ApplicationIcon The platform supports setting the application icon. (since 5.5)
\value [since 5.5] ApplicationIcon The platform supports setting the application icon.
\value TopStackedNativeChildWindows The platform supports native child windows via
QWindowContainer without having to punch a transparent hole in the
Expand Down
4 changes: 2 additions & 2 deletions src/network/ssl/qssl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ Q_LOGGING_CATEGORY(lcSsl, "qt.network.ssl");
\value DtlsV1_0OrLater DTLSv1.0 and later versions.
\value DtlsV1_2 DTLSv1.2
\value DtlsV1_2OrLater DTLSv1.2 and later versions.
\value TlsV1_3 TLSv1.3. (Since Qt 5.12)
\value TlsV1_3OrLater TLSv1.3 and later versions. (Since Qt 5.12)
\value [since 5.12] TlsV1_3 TLSv1.3.
\value [since 5.12] TlsV1_3OrLater TLSv1.3 and later versions.
\value UnknownProtocol The cipher's protocol cannot be determined.
\value AnyProtocol Any supported protocol. This value is used by QSslSocket only.
\value SecureProtocols The default option, using protocols known to be secure.
Expand Down

0 comments on commit 2a734e1

Please sign in to comment.