3 # Patch managed by http://www.holgerschurig.de/patcher.html
7 +++ portabase/packages/portabase/portabase-1.9/qtversion.patch
11 +# Patch managed by http://www.holgerschurig.de/patcher.html
14 +--- portabase/datewidget.cpp~qtversion.patch
15 ++++ portabase/datewidget.cpp
17 + #include "desktop/resource.h"
20 +-#if QT_VERSION >= 300
21 ++#if QT_VERSION >= 0x030000
22 + #include "desktop/QtaDatePicker.h"
24 + #include "QtaDatePicker.h"
25 +--- portabase/metakitfuncs.cpp~qtversion.patch
26 ++++ portabase/metakitfuncs.cpp
29 + int compareStrings(const QString &s1, const QString &s2)
31 +-#if QT_VERSION >= 300
32 ++#if QT_VERSION >= 0x030000
33 + return s1.localeAwareCompare(s2);
35 + // do the right thing for null and empty
36 +--- portabase/roweditor.cpp~qtversion.patch
37 ++++ portabase/roweditor.cpp
39 + #include "roweditor.h"
40 + #include "timewidget.h"
42 +-#if QT_VERSION >= 300
43 ++#if QT_VERSION >= 0x030000
44 + #include "desktop/dynamicedit.h"
46 + #include "dynamicedit.h"
47 +--- portabase/shadedlistitem.cpp~qtversion.patch
48 ++++ portabase/shadedlistitem.cpp
50 + void ShadedListItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
52 + QColorGroup colors(cg);
53 +-#if QT_VERSION >=300
54 ++#if QT_VERSION >= 0x030000
55 + const QWidget::BackgroundMode bgmode = lv->viewport()->backgroundMode();
56 + const QColorGroup::ColorRole crole = QPalette::backgroundRoleFromMode(bgmode);
58 --- portabase/datewidget.cpp~qtversion
59 +++ portabase/datewidget.cpp
61 #include "desktop/resource.h"
64 -#if QT_VERSION >= 300
65 +#if QT_VERSION >= 0x030000
66 #include "desktop/QtaDatePicker.h"
68 #include "QtaDatePicker.h"
69 --- portabase/roweditor.cpp~qtversion
70 +++ portabase/roweditor.cpp
72 #include "roweditor.h"
73 #include "timewidget.h"
75 -#if QT_VERSION >= 300
76 +#if QT_VERSION >= 0x030000
77 #include "desktop/dynamicedit.h"
79 #include "dynamicedit.h"
80 --- portabase/shadedlistitem.cpp~qtversion
81 +++ portabase/shadedlistitem.cpp
83 void ShadedListItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
85 QColorGroup colors(cg);
87 +#if QT_VERSION >= 0x030000
88 const QWidget::BackgroundMode bgmode = lv->viewport()->backgroundMode();
89 const QColorGroup::ColorRole crole = QPalette::backgroundRoleFromMode(bgmode);
91 --- portabase/metakitfuncs.cpp~qtversion
92 +++ portabase/metakitfuncs.cpp
95 int compareStrings(const QString &s1, const QString &s2)
97 -#if QT_VERSION >= 300
98 +#if QT_VERSION >= 0x030000
99 return s1.localeAwareCompare(s2);
101 // do the right thing for null and empty