diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-05-07 09:21:23 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-05-07 21:50:58 +0200 |
commit | 300dec66ce18b63a08027ef9f200117e87902274 (patch) | |
tree | ab4719e81ceff1f7268a358f93a4d7a289e73c92 /src/corelib/kernel/qmetaobject.h | |
parent | d5c3e1336bce42df53d4b525237244486ba5422d (diff) |
QMetaMethod: Store method constness in metaobject system
[ChangeLog][QtCore][QMetaMethod] It is now possible to query the
constness of a method with QMetaMethod::isConst.
Change-Id: I8a94480b8074ef5b30555aeccd64937c4c6d97d4
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobject.h')
-rw-r--r-- | src/corelib/kernel/qmetaobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qmetaobject.h b/src/corelib/kernel/qmetaobject.h index 1e9a0097fb..6fe259868f 100644 --- a/src/corelib/kernel/qmetaobject.h +++ b/src/corelib/kernel/qmetaobject.h @@ -77,6 +77,7 @@ public: int methodIndex() const; int relativeMethodIndex() const; int revision() const; + bool isConst() const; inline const QMetaObject *enclosingMetaObject() const { return mobj; } |