aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2017-11-13 02:28:01 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-11-24 07:05:02 +0000
commit863401c731eed4d82a07e7fea64d4d39f5de88b2 (patch)
treea783ca3200d9038eeaa53309768db8fa75c32e04 /sources/pyside2/PySide2
parent46c27014d9b31cb24d463c689bb0a7958389dd1e (diff)
Create a function existence registry
With the signature module, it is now a straight forward task to generate a registry of all known function signatures. We check that these signatures all exist. One file contains all signatures for one platform and version. The test is only activated when run in the CI system. An initial call creates the expected file as output and raises an error. The result can then be picked up from the error log and added to the repository. Done: linux2 5.6.4 Done: darwin 5.6.4 Done: win32 5.6.4 Done: darwin 5.9.3 Task-number: PYSIDE-510 Change-Id: Ib366f60d527ee8b043c7ee16430fdda42c707cfe Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2')
-rw-r--r--sources/pyside2/PySide2/support/signature/mapping.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/support/signature/mapping.py b/sources/pyside2/PySide2/support/signature/mapping.py
index 9345464c0..318f934d5 100644
--- a/sources/pyside2/PySide2/support/signature/mapping.py
+++ b/sources/pyside2/PySide2/support/signature/mapping.py
@@ -255,6 +255,7 @@ def init_QtCore():
"float[][]": FloatMatrix, # 5.9
"PySide2.QtCore.unsigned int": int, # 5.9 Ubuntu
"PySide2.QtCore.long long": int, # 5.9, MSVC 15
+ "QGenericArgument(nullptr)": QGenericArgument(None), # 5.10
"QModelIndex()": Invalid("PySide2.QtCore.QModelIndex"), # repr is btw. very wrong, fix it?!
"QGenericArgument((0))": None, # 5.6, RHEL 6.6. Is that ok?
"QGenericArgument()": None,
@@ -309,6 +310,7 @@ def init_QtGui():
"PySide2.QtGui.QPlatformSurface": Virtual("PySide2.QtGui.QPlatformSurface"), # hmm...
"QList< QTouchEvent.TouchPoint >()": [], # XXX improve?
"QPixmap()": Default("PySide2.QtGui.QPixmap"), # can't create without qApp
+ "zero(uint32_t)": 0,
"zero(PySide2.QtGui.QWindow)": None,
"zero(PySide2.QtGui.QOpenGLContext)": None,
"zero(PySide2.QtGui.QRegion)": None,
@@ -333,6 +335,7 @@ def init_QtWidgets():
"static_cast<Qt.MatchFlags>(Qt.MatchExactly|Qt.MatchCaseSensitive)": Instance(
"Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive)"),
"QVector< int >()": [],
+ "WId": WId,
# from 5.9
"Type": PySide2.QtWidgets.QListWidgetItem.Type,
"SO_Default": QStyleOption.SO_Default,
@@ -350,6 +353,7 @@ def init_QtWidgets():
"zero(PySide2.QtGui.QKeySequence)": None,
"zero(PySide2.QtWidgets.QAction)": None,
"zero(PySide2.QtWidgets.QUndoCommand)": None,
+ "zero(WId)": 0,
})
return locals()