QMeta{Property,Method}: document that revision() is encoded since 6.0

Amends f64694647a9a3d54fa5ecdaf2570e8c7404271a6.

Pick-to: 6.5
Fixes: QTBUG-129920
Change-Id: Ic42789eb08fc264bdce7fffdc6dcfbc8794070bf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 6c8368226e177b7385fc1c3e655df78aecb3d1f4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Thiago Macieira 2024-10-11 09:31:47 -07:00 committed by Qt Cherry-pick Bot
parent 35a8223646
commit d815b7d839

View File

@ -2324,8 +2324,9 @@ int QMetaMethod::relativeMethodIndex() const
// This method has been around for a while, but the documentation was marked \internal until 5.1
/*!
\since 5.1
Returns the method revision if one was
specified by Q_REVISION, otherwise returns 0.
Returns the method revision if one was specified by Q_REVISION, otherwise
returns 0. Since Qt 6.0, non-zero values are encoded and can be decoded
using QTypeRevision::fromEncodedVersion().
*/
int QMetaMethod::revision() const
{
@ -3998,8 +3999,9 @@ int QMetaProperty::notifySignalIndex() const
/*!
\since 5.1
Returns the property revision if one was
specified by REVISION, otherwise returns 0.
Returns the property revision if one was specified by Q_REVISION, otherwise
returns 0. Since Qt 6.0, non-zero values are encoded and can be decoded
using QTypeRevision::fromEncodedVersion().
*/
int QMetaProperty::revision() const
{