summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make3
-rw-r--r--config.in4
-rw-r--r--library/library.pro6
-rw-r--r--library/qpeapplication.cpp10
-rw-r--r--library/qt_override.cpp40
5 files changed, 44 insertions, 19 deletions
diff --git a/Rules.make b/Rules.make
index 4833b11..a1e6f09 100644
--- a/Rules.make
+++ b/Rules.make
@@ -31,2 +31,5 @@ else
31 endif 31 endif
32ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y)
33 echo CONFIG += no-override >> $@
34endif
32 35
diff --git a/config.in b/config.in
index dac9024..ddbc93b 100644
--- a/config.in
+++ b/config.in
@@ -43,2 +43,6 @@ config QUICK_LAUNCH
43 default n 43 default n
44
45config OPIE_NO_OVERRIDE_QT
46 boolean "Build Opie against an unpatched version of Qt"
47 default n
44 48
diff --git a/library/library.pro b/library/library.pro
index 80a0f62..ab1f451 100644
--- a/library/library.pro
+++ b/library/library.pro
@@ -120,2 +120,4 @@ SOURCES = calendar.cpp \
120 120
121
122
121# Qt 3 compatibility 123# Qt 3 compatibility
@@ -151 +153,5 @@ TRANSLATIONS = ../i18n/de/libqpe.ts \
151include ( $(OPIEDIR)/include.pro ) 153include ( $(OPIEDIR)/include.pro )
154
155contains( CONFIG, no-override ){
156 DEFINES += OPIE_NO_OVERRIDE_QT
157}
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 28fb13a..feba8b6 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -1126,3 +1126,4 @@ void QPEApplication::applyStyle()
1126 1126
1127 #if QT_VERSION > 233 1127#if QT_VERSION > 233
1128#if !defined(OPIE_NO_OVERRIDE_QT)
1128 // don't block ourselves ... 1129 // don't block ourselves ...
@@ -1140,2 +1141,5 @@ void QPEApplication::applyStyle()
1140 } 1141 }
1142#else
1143 int nostyle = 0;
1144#endif
1141 1145
@@ -1196,2 +1200,3 @@ void QPEApplication::applyStyle()
1196 1200
1201#if !defined(OPIE_NO_OVERRIDE_QT)
1197 // revert to global blocking policy ... 1202 // revert to global blocking policy ...
@@ -1199,3 +1204,4 @@ void QPEApplication::applyStyle()
1199 Opie::force_appearance &= ~nostyle; 1204 Opie::force_appearance &= ~nostyle;
1200 #endif 1205#endif
1206#endif
1201} 1207}
diff --git a/library/qt_override.cpp b/library/qt_override.cpp
index edda874..df5a419 100644
--- a/library/qt_override.cpp
+++ b/library/qt_override.cpp
@@ -24,3 +24,3 @@ struct color_fix_t {
24 24
25 25#ifndef OPIE_NO_OVERRIDE_QT
26 26
@@ -29,3 +29,3 @@ static const color_fix_t apps_that_need_special_colors [] = {
29 { "neocal", "Display", 0, QColorGroup::Background, QColorGroup::Base }, 29 { "neocal", "Display", 0, QColorGroup::Background, QColorGroup::Base },
30 30
31 { 0, 0, 0, QColorGroup::Base, QColorGroup::Base } 31 { 0, 0, 0, QColorGroup::Base, QColorGroup::Base }
@@ -37,3 +37,3 @@ static const char * const apps_that_need_pointsizes_times_10 [] = {
37 "HancomPresenterViewer", 37 "HancomPresenterViewer",
38 38
39 0 39 0
@@ -58,3 +58,3 @@ const char *Opie::binaryName ( )
58 static const char *appname = 0; 58 static const char *appname = 0;
59 59
60 if ( !appname ) { 60 if ( !appname ) {
@@ -62,6 +62,6 @@ const char *Opie::binaryName ( )
62 int l = ::readlink ( "/proc/self/exe", dst, PATH_MAX ); 62 int l = ::readlink ( "/proc/self/exe", dst, PATH_MAX );
63 63
64 if ( l <= 0 ) 64 if ( l <= 0 )
65 l = 0; 65 l = 0;
66 66
67 dst [l] = 0; 67 dst [l] = 0;
@@ -69,5 +69,5 @@ const char *Opie::binaryName ( )
69 appname = ::strdup ( b ? b + 1 : dst ); 69 appname = ::strdup ( b ? b + 1 : dst );
70 70
71 ::atexit ( binaryNameFree ); 71 ::atexit ( binaryNameFree );
72 } 72 }
73 return appname; 73 return appname;
@@ -75,4 +75,7 @@ const char *Opie::binaryName ( )
75 75
76#else
77int Opie::force_appearance = 0;
78#endif
76 79
77// Fix for a toolchain incompatibility (binaries compiled with 80// Fix for a toolchain incompatibility (binaries compiled with
78// old tcs using shared libs compiled with newer tcs) 81// old tcs using shared libs compiled with newer tcs)
@@ -83,3 +86,3 @@ extern void __gmon_start__ ( ) __attribute__(( weak ));
83 86
84extern void __gmon_start__ ( ) 87extern void __gmon_start__ ( )
85{ 88{
@@ -91,3 +94,3 @@ extern void __gmon_start__ ( )
91// Fix for apps, that use QPainter::eraseRect() which doesn't work with styles 94// Fix for apps, that use QPainter::eraseRect() which doesn't work with styles
92// that set a background pixmap (it would be easier to fix eraseRect(), but 95// that set a background pixmap (it would be easier to fix eraseRect(), but
93// TT made it an inline ...) 96// TT made it an inline ...)
@@ -96,2 +99,3 @@ void QPEApplication::polish ( QWidget *w )
96{ 99{
100#ifndef OPIE_NO_OVERRIDE_QT
97 //qDebug ( "QPEApplication::polish()" ); 101 //qDebug ( "QPEApplication::polish()" );
@@ -107,2 +111,3 @@ void QPEApplication::polish ( QWidget *w )
107 } 111 }
112#endif
108 QApplication::polish ( w ); 113 QApplication::polish ( w );
@@ -111,2 +116,3 @@ void QPEApplication::polish ( QWidget *w )
111 116
117#ifndef OPIE_NO_OVERRIDE_QT
112// Fix for the binary incompatibility that TT introduced in Qt/E 2.3.4 -- point sizes 118// Fix for the binary incompatibility that TT introduced in Qt/E 2.3.4 -- point sizes
@@ -122,4 +128,4 @@ QValueList <int> QFontDatabase::pointSizes ( QString const &family, QString cons
122 if ( ::strcmp ( Opie::binaryName ( ), *ptr ) == 0 ) { 128 if ( ::strcmp ( Opie::binaryName ( ), *ptr ) == 0 ) {
123 for ( QValueList <int>::Iterator it = sl. begin ( ); it != sl. end ( ); ++it ) 129 for ( QValueList <int>::Iterator it = sl. begin ( ); it != sl. end ( ); ++it )
124 *it *= 10; 130 *it *= 10;
125 } 131 }
@@ -158,3 +164,3 @@ void QApplication::setFont ( const QFont &fnt, bool informWidgets, const char *c
158} 164}
159 165
160 166
@@ -169,3 +175,3 @@ void QApplication::qwsSetDecoration ( QWSDecoration *deco )
169} 175}
170 176#endif
171#endif \ No newline at end of file 177#endif