@@ -20,6 +20,7 @@ which are not wrapped by PyQt:
20
20
#if (PY_VERSION_HEX < 0x02050000)
21
21
typedef int Py_ssize_t;
22
22
#endif
23
+
23
24
%End
24
25
25
26
@@ -29,6 +30,10 @@ template <TYPE>
29
30
{
30
31
%TypeHeaderCode
31
32
#include <QVector>
33
+ #if (SIP_VERSION >= 0x040900)
34
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
35
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
36
+ #endif
32
37
%End
33
38
34
39
%ConvertFromTypeCode
@@ -105,6 +110,10 @@ template <TYPE>
105
110
{
106
111
%TypeHeaderCode
107
112
#include <QVector>
113
+ #if (SIP_VERSION >= 0x040900)
114
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
115
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
116
+ #endif
108
117
%End
109
118
110
119
%ConvertFromTypeCode
@@ -259,6 +268,10 @@ template <TYPE>
259
268
{
260
269
%TypeHeaderCode
261
270
#include <QSet>
271
+ #if (SIP_VERSION >= 0x040900)
272
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
273
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
274
+ #endif
262
275
%End
263
276
264
277
%ConvertFromTypeCode
@@ -309,6 +322,10 @@ template <TYPE>
309
322
{
310
323
%TypeHeaderCode
311
324
#include <QSet>
325
+ #if (SIP_VERSION >= 0x040900)
326
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
327
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
328
+ #endif
312
329
%End
313
330
314
331
%ConvertFromTypeCode
@@ -381,6 +398,10 @@ template<TYPE>
381
398
{
382
399
%TypeHeaderCode
383
400
#include <QMap>
401
+ #if (SIP_VERSION >= 0x040900)
402
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
403
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
404
+ #endif
384
405
%End
385
406
386
407
%ConvertFromTypeCode
@@ -498,6 +519,10 @@ template<TYPE>
498
519
{
499
520
%TypeHeaderCode
500
521
#include <QMap>
522
+ #if (SIP_VERSION >= 0x040900)
523
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
524
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
525
+ #endif
501
526
%End
502
527
503
528
%ConvertFromTypeCode
@@ -598,7 +623,11 @@ template<TYPE1, TYPE2>
598
623
%MappedType QMap<TYPE1, TYPE2*>
599
624
{
600
625
%TypeHeaderCode
601
- #include <qmap.h>
626
+ #include <QMap>
627
+ #if (SIP_VERSION >= 0x040900)
628
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
629
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
630
+ #endif
602
631
%End
603
632
604
633
%ConvertFromTypeCode
@@ -706,6 +735,10 @@ template<double, TYPE2>
706
735
{
707
736
%TypeHeaderCode
708
737
#include <QMultiMap>
738
+ #if (SIP_VERSION >= 0x040900)
739
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
740
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
741
+ #endif
709
742
%End
710
743
711
744
%ConvertFromTypeCode
@@ -824,6 +857,10 @@ template<double, TYPE2>
824
857
{
825
858
%TypeHeaderCode
826
859
#include <QMap>
860
+ #if (SIP_VERSION >= 0x040900)
861
+ #define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
862
+ #define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
863
+ #endif
827
864
%End
828
865
829
866
%ConvertFromTypeCode
0 commit comments