summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetaobject.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2024-10-11 09:31:47 -0700
committerThiago Macieira <thiago.macieira@intel.com>2024-10-14 20:14:49 -0700
commit6c8368226e177b7385fc1c3e655df78aecb3d1f4 (patch)
tree235d3ba430193d0685d590d7429a9582397de0e9 /src/corelib/kernel/qmetaobject.cpp
parent9df6e8ad3b3a7a57af87e6a3fef2ef793610cb3d (diff)
QMeta{Property,Method}: document that revision() is encoded since 6.0
Amends f64694647a9a3d54fa5ecdaf2570e8c7404271a6. Pick-to: 6.8 6.5 Fixes: QTBUG-129920 Change-Id: Ic42789eb08fc264bdce7fffdc6dcfbc8794070bf Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobject.cpp')
-rw-r--r--src/corelib/kernel/qmetaobject.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp
index 0fab011f9a9..7229bb2b66d 100644
--- a/src/corelib/kernel/qmetaobject.cpp
+++ b/src/corelib/kernel/qmetaobject.cpp
@@ -2352,8 +2352,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
{
@@ -4181,8 +4182,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
{