diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-23 14:57:29 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-25 08:55:26 +0100 |
commit | 875bb91cc542103d2f0ad777452d5ac8ed960471 (patch) | |
tree | 1f21161abbc253824cb7a5b9032f0efaa2518153 /sources/shiboken6/ApiExtractor/typesystem.h | |
parent | 3c24f0a856a166b4672921c4e1c2347ca397fdac (diff) |
shiboken6: Add further methods to smart pointers
Add attributes for reset() and null-check.
The shared pointer in the test uses isNull() which works due to
the --use-isnull-as-nb_nonzero option, but it should be possible
to explicitly specify that.
[ChangeLog][shiboken6] Attributes for reset() and null-check of
smart pointers have been added.
Task-number: PYSIDE-454
Change-Id: I22571eeb43f7f98b6a77b31066bf8daa681cb044
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit eef987d0faaf1122f191a6ad92343d98f197715d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/typesystem.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/typesystem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/typesystem.h b/sources/shiboken6/ApiExtractor/typesystem.h index fc77fc6ca..f80ff886d 100644 --- a/sources/shiboken6/ApiExtractor/typesystem.h +++ b/sources/shiboken6/ApiExtractor/typesystem.h @@ -718,6 +718,11 @@ public: QString refCountMethodName() const; + QString nullCheckMethod() const; + void setNullCheckMethod(const QString &); + QString resetMethod() const; + void setResetMethod(const QString &); + TypeEntry *clone() const override; Instantiations instantiations() const; |