summaryrefslogtreecommitdiff
path: root/packages/portabase/portabase-1.9/qtversion.patch
blob: e7e93d054417ae90aa9183ae9984090a5b7b32cd (plain)
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

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- /dev/null
+++ portabase/packages/portabase/portabase-1.9/qtversion.patch
@@ -0,0 +1,49 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- portabase/datewidget.cpp~qtversion.patch
++++ portabase/datewidget.cpp
+@@ -21,7 +21,7 @@
+ #include "desktop/resource.h"
+ #endif
+ 
+-#if QT_VERSION >= 300
++#if QT_VERSION >= 0x030000
+ #include "desktop/QtaDatePicker.h"
+ #else
+ #include "QtaDatePicker.h"
+--- portabase/metakitfuncs.cpp~qtversion.patch
++++ portabase/metakitfuncs.cpp
+@@ -19,7 +19,7 @@
+ 
+ int compareStrings(const QString &s1, const QString &s2)
+ {
+-#if QT_VERSION >= 300
++#if QT_VERSION >= 0x030000
+     return s1.localeAwareCompare(s2);
+ #else
+     // do the right thing for null and empty
+--- portabase/roweditor.cpp~qtversion.patch
++++ portabase/roweditor.cpp
+@@ -26,7 +26,7 @@
+ #include "roweditor.h"
+ #include "timewidget.h"
+ 
+-#if QT_VERSION >= 300
++#if QT_VERSION >= 0x030000
+ #include "desktop/dynamicedit.h"
+ #else
+ #include "dynamicedit.h"
+--- portabase/shadedlistitem.cpp~qtversion.patch
++++ portabase/shadedlistitem.cpp
+@@ -45,7 +45,7 @@
+ void ShadedListItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
+ {
+     QColorGroup colors(cg);
+-#if QT_VERSION >=300
++#if QT_VERSION >= 0x030000
+     const QWidget::BackgroundMode bgmode = lv->viewport()->backgroundMode();
+     const QColorGroup::ColorRole crole = QPalette::backgroundRoleFromMode(bgmode);
+ #else
--- portabase/datewidget.cpp~qtversion
+++ portabase/datewidget.cpp
@@ -21,7 +21,7 @@
 #include "desktop/resource.h"
 #endif
 
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
 #include "desktop/QtaDatePicker.h"
 #else
 #include "QtaDatePicker.h"
--- portabase/roweditor.cpp~qtversion
+++ portabase/roweditor.cpp
@@ -26,7 +26,7 @@
 #include "roweditor.h"
 #include "timewidget.h"
 
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
 #include "desktop/dynamicedit.h"
 #else
 #include "dynamicedit.h"
--- portabase/shadedlistitem.cpp~qtversion
+++ portabase/shadedlistitem.cpp
@@ -45,7 +45,7 @@
 void ShadedListItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
 {
     QColorGroup colors(cg);
-#if QT_VERSION >=300
+#if QT_VERSION >= 0x030000
     const QWidget::BackgroundMode bgmode = lv->viewport()->backgroundMode();
     const QColorGroup::ColorRole crole = QPalette::backgroundRoleFromMode(bgmode);
 #else
--- portabase/metakitfuncs.cpp~qtversion
+++ portabase/metakitfuncs.cpp
@@ -19,7 +19,7 @@
 
 int compareStrings(const QString &s1, const QString &s2)
 {
-#if QT_VERSION >= 300
+#if QT_VERSION >= 0x030000
     return s1.localeAwareCompare(s2);
 #else
     // do the right thing for null and empty