author | zecke <zecke> | 2003-10-04 08:59:51 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-10-04 08:59:51 (UTC) |
commit | dc9510f788212a6be063349461540e4bea690f51 (patch) (unidiff) | |
tree | b8728fdc12c1580287f16f3828180beac5d55c13 | |
parent | 23f729eb7487ad189591c3b0c9af9d3afecd3b91 (diff) | |
download | opie-dc9510f788212a6be063349461540e4bea690f51.zip opie-dc9510f788212a6be063349461540e4bea690f51.tar.gz opie-dc9510f788212a6be063349461540e4bea690f51.tar.bz2 |
Allow Opie beeing build with a Plain version of Qt without weak symbols
-rw-r--r-- | Rules.make | 3 | ||||
-rw-r--r-- | config.in | 4 | ||||
-rw-r--r-- | library/library.pro | 6 | ||||
-rw-r--r-- | library/qpeapplication.cpp | 6 | ||||
-rw-r--r-- | library/qt_override.cpp | 10 |
5 files changed, 27 insertions, 2 deletions
@@ -31,2 +31,5 @@ else | |||
31 | endif | 31 | endif |
32 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) | ||
33 | echo CONFIG += no-override >> $@ | ||
34 | endif | ||
32 | 35 | ||
@@ -44,2 +44,6 @@ config QUICK_LAUNCH | |||
44 | 44 | ||
45 | config OPIE_NO_OVERRIDE_QT | ||
46 | boolean "Build Opie against an unpatched version of Qt" | ||
47 | default n | ||
48 | |||
45 | config SPECFILE | 49 | config SPECFILE |
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 \ | |||
151 | include ( $(OPIEDIR)/include.pro ) | 153 | include ( $(OPIEDIR)/include.pro ) |
154 | |||
155 | contains( 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 | |||
@@ -1127,2 +1127,3 @@ void QPEApplication::applyStyle() | |||
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 ... |
@@ -1200,2 +1205,3 @@ void QPEApplication::applyStyle() | |||
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 | ||
@@ -75,2 +75,5 @@ const char *Opie::binaryName ( ) | |||
75 | 75 | ||
76 | #else | ||
77 | int Opie::force_appearance = 0; | ||
78 | #endif | ||
76 | 79 | ||
@@ -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 |
@@ -169,3 +175,3 @@ void QApplication::qwsSetDecoration ( QWSDecoration *deco ) | |||
169 | } | 175 | } |
170 | 176 | #endif | |
171 | #endif \ No newline at end of file | 177 | #endif \ No newline at end of file |