diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-10-01 12:39:19 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-10-02 14:02:19 +0200 |
| commit | c512b506b565578770c671b11afb78427ca8d012 (patch) | |
| tree | 77cff853888db902219029ad777553514e2312e4 /sources/shiboken6/ApiExtractor/messages.cpp | |
| parent | bc85c54dadc02bd618f085c1fc55b7ba9d33c4c8 (diff) | |
shiboken6: Handle QT6_DECL_NEW_OVERLOAD_TAIL within shiboken6
Strip parameters of type Qt::Disambiguated_t similar to
QPrivateSignal (see qtbase/0a3ff697380555538a0d035b768ddf10f772b55a).
As this becomes more and more common, it saves
the work of declaring those functions.
Change-Id: I973b47ddcfa3ac40795885da0f4001a95ad108fd
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/messages.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index 543deff4b..6ed0cceae 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -408,6 +408,16 @@ QString msgStrippingArgument(const FunctionModelItem &f, int i, return result; } +QString msgStrippingQtDisambiguatedArgument(const FunctionModelItem &f, + const QString &originalSignature) +{ + QString result; + QTextStream str(&result); + str << f->sourceLocation() << "Stripping last argument of " + << originalSignature << " (QT6_DECL_NEW_OVERLOAD_TAIL)."; + return result; +} + QString msgEnumNotDefined(const EnumTypeEntryCPtr &t) { QString result; |
