Patch taken from the upstream repository https://github.com/frescobaldi/python-poppler-qt5/issues/43 From 92e5962ec3751ab051d0b655fd61afc7a1cf709e Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Thu, 4 Mar 2021 17:02:51 +0100 Subject: [PATCH] map type QVector< QPair > for FormFieldChoice::choicesWithExportValues() (#45) --- types.sip | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/types.sip b/types.sip index 239b8c9..81cb283 100644 --- a/types.sip +++ b/types.sip @@ -331,5 +331,98 @@ template }; +/** + * Convert QVector< QPair > + * from and to a Python list of a 2-item tuple + */ + +template +%MappedType QVector< QPair > +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Create the list. + PyObject *l; + + if ((l = PyList_New(sipCpp->size())) == NULL) + return NULL; + + // Set the li
aboutsummaryrefslogtreecommitdiff
blob: 00b87ff0ac3a69612a755c188bdb28b2c60a879e (about) (plain)
1
2
3
4
5
6
7
8