diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-06 15:28:15 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-06 22:07:13 +0200 |
commit | fa1a682cfdc0238a7ca10ffd45ea5f6ada4c8e7e (patch) | |
tree | b368025a6f68190288cc05651f59fddcd766e811 /sources/shiboken2 | |
parent | c9cfda7c4eecfc70720f0e0524e28d495abb9a76 (diff) |
Silence some warnings of the signature parser
Add mappings for QDeadlineTimer, SocketDescriptor::DescriptorType
and QNetworkRequest.TransferTimeoutConstant, fixing:
UNRECOGNIZED: 'DescriptorType(-1)'
UNRECOGNIZED: 'QDeadlineTimer(QDeadlineTimer.Forever)'
UNRECOGNIZED: 'QNetworkRequest.DefaultTransferTimeoutConstant'
UNRECOGNIZED: 'DefaultTransferTimeoutConstant'
Change-Id: I633153a2cb0b272d76804ea6c10c2526e7ab9514
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2')
-rw-r--r-- | sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/mapping.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/mapping.py b/sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/mapping.py index 0571b11bd..c6d67c4f4 100644 --- a/sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/mapping.py +++ b/sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/mapping.py @@ -438,6 +438,7 @@ def init_PySide2_QtCore(): "4294967295UL": 4294967295, # 5.6, RHEL 6.6 "CheckIndexOption.NoOption": Instance( "PySide2.QtCore.QAbstractItemModel.CheckIndexOptions.NoOption"), # 5.11 + "DescriptorType(-1)": int, # Native handle of QSocketDescriptor "false": False, "list of QAbstractAnimation": typing.List[PySide2.QtCore.QAbstractAnimation], "list of QAbstractState": typing.List[PySide2.QtCore.QAbstractState], @@ -446,6 +447,7 @@ def init_PySide2_QtCore(): "nullptr": None, # 5.9 "PyByteArray": bytearray, "PyBytes": bytes, + "QDeadlineTimer(QDeadlineTimer.Forever)": Instance("PySide2.QtCore.QDeadlineTimer"), "PySide2.QtCore.QCborStreamReader.StringResult[PySide2.QtCore.QByteArray]": PySide2.QtCore.QCborStringResultByteArray, "PySide2.QtCore.QCborStreamReader.StringResult[QString]": @@ -540,10 +542,15 @@ def init_PySide2_QtSql(): def init_PySide2_QtNetwork(): + from PySide2.QtNetwork import QNetworkRequest best_structure = typing.OrderedDict if getattr(typing, "OrderedDict", None) else typing.Dict type_map.update({ "QMultiMap[PySide2.QtNetwork.QSsl.AlternativeNameEntryType, QString]": best_structure[PySide2.QtNetwork.QSsl.AlternativeNameEntryType, typing.List[str]], + "DefaultTransferTimeoutConstant": + QNetworkRequest.TransferTimeoutConstant, + "QNetworkRequest.DefaultTransferTimeoutConstant": + QNetworkRequest.TransferTimeoutConstant, }) del best_structure return locals() |