diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-03-20 17:14:41 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-03-22 06:03:55 +0000 |
commit | fcd465512aa78039123343da86610a36f509878e (patch) | |
tree | dd7649c6c545bdf4fbb2d5aeabefd403e265a24d /src | |
parent | d35c2219836277708d6fd7dc9a892e9ccd7b9aa8 (diff) |
QMetaMethod: document that fromSignal(nullptr) is ok
... and add a test.
Pick-to: 6.5 6.2 5.15
Change-Id: I907899d7c54349d2fc23ea5ab58a1e67826b622b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit 78db468f4895911e50849223899abf2c5fb1c72e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 9f14d0a288ef5355ca92e64fe464735f119b8ec5)
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qmetaobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp index 37afff5bb5..3a44b353ba 100644 --- a/src/corelib/kernel/qmetaobject.cpp +++ b/src/corelib/kernel/qmetaobject.cpp @@ -2350,7 +2350,7 @@ QMetaMethod::MethodType QMetaMethod::methodType() const \since 5.0 Returns the meta-method that corresponds to the given \a signal, or an - invalid QMetaMethod if \a signal is not a signal of the class. + invalid QMetaMethod if \a signal is \c{nullptr} or not a signal of the class. Example: |