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/messages.cpp | |
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/messages.cpp')
-rw-r--r-- | sources/shiboken6/ApiExtractor/messages.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index 605b99966..762630fad 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -615,6 +615,12 @@ QString msgCannotFindSmartPointer(const QString &instantiationType, return result; } +QString msgMethodNotFound(const AbstractMetaClass *klass, const QString &name) +{ + return u"Method \""_qs + name + u"\" not found in class "_qs + + klass->name() + u'.'; +} + // main.cpp QString msgLeftOverArguments(const QVariantMap &remainingArgs) |