1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#
--- PyQt-x11-gpl-3.13/sip/qtcanvas/qcanvas.sip~qt2-fix
+++ PyQt-x11-gpl-3.13/sip/qtcanvas/qcanvas.sip
@@ -235,7 +235,7 @@
sipClass = sipClass_QCanvasLine;
break;
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
case 8:
sipClass = sipClass_QCanvasSpline;
break;
--- PyQt-x11-gpl-3.13/sip/qttable/qtable.sip~qt2-fix
+++ PyQt-x11-gpl-3.13/sip/qttable/qtable.sip
@@ -114,7 +114,7 @@
%ConvertToSubClassCode
Py_BEGIN_ALLOW_THREADS
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
int rtti = sipCpp -> rtti();
if (rtti == QCheckTableItem::RTTI)
--- PyQt-x11-gpl-3.13/sip/qt/qobject.sip~qt2-fix
+++ PyQt-x11-gpl-3.13/sip/qt/qobject.sip
@@ -102,7 +102,7 @@
#endif
{sipName_QComboBox, &sipClass_QComboBox},
{sipName_QCommonStyle, &sipClass_QCommonStyle},
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QDateEdit, &sipClass_QDateEdit},
{sipName_QDateTimeEdit, &sipClass_QDateTimeEdit},
{sipName_QDesktopWidget, &sipClass_QDesktopWidget},
@@ -111,13 +111,13 @@
{sipName_QDial, &sipClass_QDial},
#endif
{sipName_QDialog, &sipClass_QDialog},
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QDockArea, &sipClass_QDockArea},
{sipName_QDockWindow, &sipClass_QDockWindow},
#endif
{sipName_QDoubleValidator, &sipClass_QDoubleValidator},
{sipName_QDragObject, &sipClass_QDragObject},
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QErrorMessage, &sipClass_QErrorMessage},
#endif
#if QT_VERSION >= 0x030100
@@ -133,7 +133,7 @@
{sipName_QFrame, &sipClass_QFrame},
{sipName_QGrid, &sipClass_QGrid},
{sipName_QGridLayout, &sipClass_QGridLayout},
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QGridView, &sipClass_QGridView},
#endif
{sipName_QGroupBox, &sipClass_QGroupBox},
@@ -175,7 +175,7 @@
{sipName_QNetworkOperation, &sipClass_QNetworkOperation},
{sipName_QNetworkProtocol, &sipClass_QNetworkProtocol},
#endif
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QObjectCleanupHandler, &sipClass_QObjectCleanupHandler},
#endif
#if defined(SIP_FEATURE_Qt_STYLE_PLATINUM)
@@ -185,7 +185,7 @@
#if defined(WS_X11) && defined(SIP_FEATURE_Qt_PRINTDIALOG)
{sipName_QPrintDialog, &sipClass_QPrintDialog},
#endif
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QProcess, &sipClass_QProcess},
#endif
{sipName_QProgressBar, &sipClass_QProgressBar},
@@ -194,7 +194,7 @@
#endif
{sipName_QPushButton, &sipClass_QPushButton},
{sipName_QRadioButton, &sipClass_QRadioButton},
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QRegExpValidator, &sipClass_QRegExpValidator},
#endif
#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_STYLE_SGI)
@@ -229,11 +229,11 @@
{sipName_QTabWidget, &sipClass_QTabWidget},
{sipName_QTextBrowser, &sipClass_QTextBrowser},
{sipName_QTextDrag, &sipClass_QTextDrag},
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QTextEdit, &sipClass_QTextEdit},
#endif
{sipName_QTextView, &sipClass_QTextView},
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
{sipName_QTimeEdit, &sipClass_QTimeEdit},
#endif
{sipName_QTimer, &sipClass_QTimer},
--- PyQt-x11-gpl-3.13/sip/qt/qevent.sip~qt2-fix
+++ PyQt-x11-gpl-3.13/sip/qt/qevent.sip
@@ -528,7 +528,7 @@
sipClass = sipClass_QChildEvent;
break;
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
case QEvent::ContextMenu:
sipClass = sipClass_QContextMenuEvent;
break;
@@ -539,7 +539,7 @@
break;
#endif
-#if QT_VERSION >= 300 && QT_VERSION < 0x030100
+#if QT_VERSION >= 0x030000 && QT_VERSION < 0x030100
case QEvent::IMCompose:
sipClass = sipClass_QIMEvent;
break;
|