summaryrefslogtreecommitdiff
path: root/qt/qt-2.3.5.patch
authormickeyl <mickeyl>2005-02-19 16:07:58 (UTC)
committer mickeyl <mickeyl>2005-02-19 16:07:58 (UTC)
commitb7bf9c7acdc010eb30bc246372efb0d1b394166a (patch) (unidiff)
tree8dde116603cd8ddf439a881fc4a1d8f413af617b /qt/qt-2.3.5.patch
parent298d0d244ca724405ca0651775ed61a22ce7a5ae (diff)
downloadopie-b7bf9c7acdc010eb30bc246372efb0d1b394166a.zip
opie-b7bf9c7acdc010eb30bc246372efb0d1b394166a.tar.gz
opie-b7bf9c7acdc010eb30bc246372efb0d1b394166a.tar.bz2
hello qte2.3.10 patches
bye bye old patches
Diffstat (limited to 'qt/qt-2.3.5.patch') (more/less context) (ignore whitespace changes)
-rw-r--r--qt/qt-2.3.5.patch/qte235-all.patch450
1 files changed, 0 insertions, 450 deletions
diff --git a/qt/qt-2.3.5.patch/qte235-all.patch b/qt/qt-2.3.5.patch/qte235-all.patch
deleted file mode 100644
index 9b58dbe..0000000
--- a/qt/qt-2.3.5.patch/qte235-all.patch
+++ b/dev/null
@@ -1,450 +0,0 @@
1diff -ru qt-2.3.5_fresh/include/qapplication.h qt-2.3.5/include/qapplication.h
2 --- qt-2.3.5_fresh/include/qapplication.h2003-05-13 15:56:10.000000000 +0200
3 +++ qt-2.3.5/include/qapplication.h2003-05-13 15:58:18.000000000 +0200
4@@ -61,6 +61,10 @@
5 class QSemaphore;
6 #endif
7
8+#if !defined( QT_WEAK_SYMBOL )
9+#define QT_WEAK_SYMBOL
10+#endif
11+
12 // REMOVE IN 3.0 (just here for moc source compatibility)
13 #define QNonBaseApplication QApplication
14
15@@ -85,7 +89,10 @@
16
17 #ifndef QT_NO_STYLE
18 static QStyle &style();
19 - static void setStyle( QStyle* );
20 + static void setStyle( QStyle* ) QT_WEAK_SYMBOL;
21+private:
22 +static void setStyle_NonWeak( QStyle* );
23+public:
24 #endif
25 #if 1/* OBSOLETE */
26 enum ColorMode { NormalColors, CustomColors };
27@@ -106,11 +113,19 @@
28 #ifndef QT_NO_PALETTE
29 static QPalette palette( const QWidget* = 0 );
30 static void setPalette( const QPalette &, bool informWidgets=FALSE,
31 + const char* className = 0 ) QT_WEAK_SYMBOL;
32+private:
33 + static void setPalette_NonWeak( const QPalette &, bool informWidgets=FALSE,
34 const char* className = 0 );
35+public:
36 #endif
37 static QFont font( const QWidget* = 0 );
38 static void setFont( const QFont &, bool informWidgets=FALSE,
39 + const char* className = 0 ) QT_WEAK_SYMBOL;
40+private:
41 + static void setFont_NonWeak( const QFont &, bool informWidgets=FALSE,
42 const char* className = 0 );
43 +public:
44 static QFontMetrics fontMetrics();
45
46 QWidget *mainWidget() const;
47@@ -207,7 +222,10 @@
48 void qwsSetCustomColors( QRgb *colortable, int start, int numColors );
49 #ifndef QT_NO_QWS_MANAGER
50 static QWSDecoration &qwsDecoration();
51- static void qwsSetDecoration( QWSDecoration *);
52+ static void qwsSetDecoration( QWSDecoration *) QT_WEAK_SYMBOL;
53+private:
54+ static void qwsSetDecoration_NonWeak( QWSDecoration *);
55+public:
56 #endif
57 #endif
58
59diff -ru qt-2.3.5_fresh/include/qfontdatabase.h qt-2.3.5/include/qfontdatabase.h
60 --- qt-2.3.5_fresh/include/qfontdatabase.h2003-05-13 15:56:11.000000000 +0200
61 +++ qt-2.3.5/include/qfontdatabase.h2003-05-13 15:58:18.000000000 +0200
62@@ -59,6 +59,10 @@
63 class QDiskFont;
64 #endif
65
66+#if !defined( QT_WEAK_SYMBOL )
67+#define QT_WEAK_SYMBOL
68+#endif
69+
70 class QFontDatabasePrivate;
71
72 class Q_EXPORT QFontDatabase
73@@ -67,9 +71,16 @@
74 QFontDatabase();
75
76 QStringList families( bool onlyForLocale = TRUE ) const;
77+
78+
79 QValueList<int> pointSizes( const QString &family,
80 const QString &style = QString::null,
81 - const QString &charSet = QString::null );
82 + const QString &charSet = QString::null ) QT_WEAK_SYMBOL;
83+private:
84+ QValueList<int> pointSizes_NonWeak( const QString &family,
85 + const QString &style,
86 + const QString &charSet );
87+public:
88 QStringList styles( const QString &family,
89 const QString &charSet = QString::null ) const;
90 QStringList charSets( const QString &familyName,
91diff -ru qt-2.3.5_fresh/src/kernel/qapplication.cpp qt-2.3.5/src/kernel/qapplication.cpp
92 --- qt-2.3.5_fresh/src/kernel/qapplication.cpp2003-05-13 15:56:10.000000000 +0200
93 +++ qt-2.3.5/src/kernel/qapplication.cpp2003-05-13 15:58:19.000000000 +0200
94@@ -35,6 +35,8 @@
95 **
96 **********************************************************************/
97
98 +#define QT_WEAK_SYMBOL__attribute__(( weak ))
99+
100 #include "qobjectlist.h"
101 #include "qobjectdict.h"
102 #include "qapplication.h"
103@@ -933,11 +935,16 @@
104 #ifndef QT_NO_STYLE
105 void QApplication::setStyle( QStyle *style )
106 {
107 +setStyle_NonWeak ( style );
108+}
109+
110+void QApplication::setStyle_NonWeak( QStyle *style )
111+{
112 QStyle* old = app_style;
113- app_style = style;
114
115 if ( startingUp() ) {
116 delete old;
117 +app_style = style;
118 return;
119 }
120
121@@ -958,6 +965,8 @@
122 old->unPolish( qApp );
123 }
124
125+ app_style = style;
126+
127 // take care of possible palette requirements of certain gui
128 // styles. Do it before polishing the application since the style
129 // might call QApplication::setStyle() itself
130@@ -1184,13 +1193,30 @@
131 \sa QWidget::setPalette(), palette(), QStyle::polish()
132 */
133
134-void QApplication::setPalette( const QPalette &palette, bool informWidgets,
135+void QApplication::setPalette ( const QPalette &palette, bool informWidgets,
136 + const char* className )
137+{
138 +setPalette_NonWeak ( palette, informWidgets, className );
139+}
140+
141+void QApplication::setPalette_NonWeak ( const QPalette &palette, bool informWidgets,
142 const char* className )
143 {
144 QPalette pal = palette;
145 #ifndef QT_NO_STYLE
146- if ( !startingUp() )
147+ if ( !startingUp() ) {
148 qApp->style().polish( pal );// NB: non-const reference
149 +if ( className ) {
150 + // if we just polished a class specific palette (this normally
151 + // only called by qt_fix_tooltips - see below), we better re-
152 + // polish the global palette. Some styles like liquid can get
153 + // confused, because they can not detect if the polished palette
154 + // is the global one or only a class specific one.
155 + // (liquid uses this palette to calculate blending pixmaps)
156 + QPalette p = qApp-> palette ( );
157 + qApp->style().polish ( p );
158 +}
159+ }
160 #endif
161 bool all = FALSE;
162 if ( !className ) {
163@@ -1275,6 +1301,12 @@
164 void QApplication::setFont( const QFont &font, bool informWidgets,
165 const char* className )
166 {
167 +setFont_NonWeak ( font, informWidgets, className );
168+}
169+
170+void QApplication::setFont_NonWeak( const QFont &font, bool informWidgets,
171 + const char* className )
172+{
173 bool all = FALSE;
174 if ( !className ) {
175 if ( !app_font ) {
176Nur in qt-2.3.5/src/kernel: qapplication.cpp.orig.
177diff -ru qt-2.3.5_fresh/src/kernel/qapplication.h qt-2.3.5/src/kernel/qapplication.h
178 --- qt-2.3.5_fresh/src/kernel/qapplication.h2003-05-13 15:56:10.000000000 +0200
179 +++ qt-2.3.5/src/kernel/qapplication.h2003-05-13 15:58:18.000000000 +0200
180@@ -61,6 +61,10 @@
181 class QSemaphore;
182 #endif
183
184+#if !defined( QT_WEAK_SYMBOL )
185+#define QT_WEAK_SYMBOL
186+#endif
187+
188 // REMOVE IN 3.0 (just here for moc source compatibility)
189 #define QNonBaseApplication QApplication
190
191@@ -85,7 +89,10 @@
192
193 #ifndef QT_NO_STYLE
194 static QStyle &style();
195 - static void setStyle( QStyle* );
196 + static void setStyle( QStyle* ) QT_WEAK_SYMBOL;
197+private:
198 +static void setStyle_NonWeak( QStyle* );
199+public:
200 #endif
201 #if 1/* OBSOLETE */
202 enum ColorMode { NormalColors, CustomColors };
203@@ -106,11 +113,19 @@
204 #ifndef QT_NO_PALETTE
205 static QPalette palette( const QWidget* = 0 );
206 static void setPalette( const QPalette &, bool informWidgets=FALSE,
207 + const char* className = 0 ) QT_WEAK_SYMBOL;
208+private:
209 + static void setPalette_NonWeak( const QPalette &, bool informWidgets=FALSE,
210 const char* className = 0 );
211+public:
212 #endif
213 static QFont font( const QWidget* = 0 );
214 static void setFont( const QFont &, bool informWidgets=FALSE,
215 + const char* className = 0 ) QT_WEAK_SYMBOL;
216+private:
217 + static void setFont_NonWeak( const QFont &, bool informWidgets=FALSE,
218 const char* className = 0 );
219 +public:
220 static QFontMetrics fontMetrics();
221
222 QWidget *mainWidget() const;
223@@ -207,7 +222,10 @@
224 void qwsSetCustomColors( QRgb *colortable, int start, int numColors );
225 #ifndef QT_NO_QWS_MANAGER
226 static QWSDecoration &qwsDecoration();
227- static void qwsSetDecoration( QWSDecoration *);
228+ static void qwsSetDecoration( QWSDecoration *) QT_WEAK_SYMBOL;
229+private:
230+ static void qwsSetDecoration_NonWeak( QWSDecoration *);
231+public:
232 #endif
233 #endif
234
235diff -ru qt-2.3.5_fresh/src/kernel/qapplication_qws.cpp qt-2.3.5/src/kernel/qapplication_qws.cpp
236 --- qt-2.3.5_fresh/src/kernel/qapplication_qws.cpp2003-05-13 15:56:10.000000000 +0200
237 +++ qt-2.3.5/src/kernel/qapplication_qws.cpp2003-05-13 15:58:18.000000000 +0200
238@@ -2737,6 +2737,11 @@
239 */
240 void QApplication::qwsSetDecoration( QWSDecoration *d )
241 {
242 +qwsSetDecoration_NonWeak ( d );
243+}
244+
245+void QApplication::qwsSetDecoration_NonWeak( QWSDecoration *d )
246+{
247 if ( d ) {
248 delete qws_decoration;
249 qws_decoration = d;
250Nur in qt-2.3.5/src/kernel: qapplication_qws.cpp.orig.
251diff -ru qt-2.3.5_fresh/src/kernel/qfontdatabase.cpp qt-2.3.5/src/kernel/qfontdatabase.cpp
252 --- qt-2.3.5_fresh/src/kernel/qfontdatabase.cpp2003-05-13 15:56:11.000000000 +0200
253 +++ qt-2.3.5/src/kernel/qfontdatabase.cpp2003-05-13 15:58:18.000000000 +0200
254@@ -35,6 +35,8 @@
255 **
256 **********************************************************************/
257
258+#define QT_WEAK_SYMBOL __attribute__(( weak ))
259+
260 #include "qfontdatabase.h"
261
262 #ifndef QT_NO_FONTDATABASE
263@@ -2424,6 +2426,13 @@
264 const QString &style,
265 const QString &charSet )
266 {
267 +return pointSizes_NonWeak ( family, style, charSet );
268+}
269+
270+QValueList<int> QFontDatabase::pointSizes_NonWeak ( const QString &family,
271+ const QString &style,
272+ const QString &charSet )
273+{
274 QString cs( charSet );
275 if ( charSet.isEmpty() ) {
276 QStringList lst = charSets( family );
277diff -ru qt-2.3.5_fresh/src/kernel/qfontdatabase.h qt-2.3.5/src/kernel/qfontdatabase.h
278 --- qt-2.3.5_fresh/src/kernel/qfontdatabase.h2003-05-13 15:56:11.000000000 +0200
279 +++ qt-2.3.5/src/kernel/qfontdatabase.h2003-05-13 15:58:18.000000000 +0200
280@@ -59,6 +59,10 @@
281 class QDiskFont;
282 #endif
283
284+#if !defined( QT_WEAK_SYMBOL )
285+#define QT_WEAK_SYMBOL
286+#endif
287+
288 class QFontDatabasePrivate;
289
290 class Q_EXPORT QFontDatabase
291@@ -67,9 +71,16 @@
292 QFontDatabase();
293
294 QStringList families( bool onlyForLocale = TRUE ) const;
295+
296+
297 QValueList<int> pointSizes( const QString &family,
298 const QString &style = QString::null,
299 - const QString &charSet = QString::null );
300 + const QString &charSet = QString::null ) QT_WEAK_SYMBOL;
301+private:
302+ QValueList<int> pointSizes_NonWeak( const QString &family,
303 + const QString &style,
304 + const QString &charSet );
305+public:
306 QStringList styles( const QString &family,
307 const QString &charSet = QString::null ) const;
308 QStringList charSets( const QString &familyName,
309diff -ru qt-2.3.5_fresh/src/kernel/qgfxraster_qws.cpp qt-2.3.5/src/kernel/qgfxraster_qws.cpp
310 --- qt-2.3.5_fresh/src/kernel/qgfxraster_qws.cpp2003-05-13 15:56:11.000000000 +0200
311 +++ qt-2.3.5/src/kernel/qgfxraster_qws.cpp2003-05-13 15:58:18.000000000 +0200
312@@ -4205,7 +4205,7 @@
313 setAlphaType(IgnoreAlpha);
314 if ( w <= 0 || h <= 0 || !ncliprect ) return;
315 GFX_START(QRect(rx+xoffs, ry+yoffs, w+1, h+1))
316-#ifdef QWS_EXPERIMENTAL_FASTPATH
317+#if 0 // def QWS_EXPERIMENTAL_FASTPATH !! this is crashing HancomWord on OZ !!
318 // ### fix for 8bpp
319 // This seems to be reliable now, at least for 16bpp
320
321Nur in qt-2.3.5/src/kernel: qgfxraster_qws.cpp.orig.
322diff -ru qt-2.3.5_fresh/src/kernel/qwindowsystem_qws.cpp qt-2.3.5/src/kernel/qwindowsystem_qws.cpp
323 --- qt-2.3.5_fresh/src/kernel/qwindowsystem_qws.cpp2003-05-13 15:56:11.000000000 +0200
324 +++ qt-2.3.5/src/kernel/qwindowsystem_qws.cpp2003-05-13 15:58:19.000000000 +0200
325@@ -843,6 +843,18 @@
326 {
327 }
328
329+static void catchSegvSignal( int )
330+{
331+#ifndef QT_NO_QWS_KEYBOARD
332+ if ( qwsServer )
333 +qwsServer->closeKeyboard();
334+#endif
335+ QWSServer::closedown();
336+ fprintf(stderr, "Segmentation fault.\n");
337+ exit(1);
338+}
339+
340+
341 /*!
342 \class QWSServer qwindowsystem_qws.h
343 \brief Server-specific functionality in Qt/Embedded
344@@ -912,6 +924,7 @@
345 }
346
347 signal(SIGPIPE, ignoreSignal); //we get it when we read
348+ signal(SIGSEGV, catchSegvSignal); //recover the keyboard on crash
349 #endif
350 focusw = 0;
351 mouseGrabber = 0;
352diff -ru qt-2.3.5_fresh/src/Makefile.in qt-2.3.5/src/Makefile.in
353 --- qt-2.3.5_fresh/src/Makefile.in2003-05-13 15:56:13.000000000 +0200
354 +++ qt-2.3.5/src/Makefile.in2003-05-13 15:58:18.000000000 +0200
355@@ -6,7 +6,7 @@
356 CXXFLAGS=$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS_X11) $(SYSCONF_CXXFLAGS) $(SYSCONF_CXXFLAGS_LIB) -DQT_NO_IMAGEIO_MNG $(QT_CXXFLAGS_OPT)
357 CC =$(SYSCONF_CC) $(QT_C_MT)
358 CFLAGS =$(SYSCONF_CFLAGS) $(SYSCONF_CFLAGS_LIB) -DQT_NO_IMAGEIO_MNG $(QT_CFLAGS_OPT)
359 -INCPATH =-I3rdparty/freetype/src -I3rdparty/freetype/include -I3rdparty/freetype/builds/unix -I3rdparty/kernel -I3rdparty/tools
360 +INCPATH =-I3rdparty/kernel -I3rdparty/tools
361 LFLAGS =$(SYSCONF_LFLAGS) $(QT_LFLAGS_MT)
362 LIBS =$(SUBLIBS) $(SYSCONF_LIBS_QTLIB)
363 MOC =$(SYSCONF_MOC)
364@@ -44,26 +44,7 @@
365 3rdparty/freetype/src/type1/type1.c \
366 3rdparty/freetype/src/winfonts/winfnt.c \
367 allmoc.cpp
368 -OBJECTS =3rdparty/freetype/builds/unix/ftsystem.o \
369 - 3rdparty/freetype/src/base/ftdebug.o \
370 - 3rdparty/freetype/src/base/ftinit.o \
371 - 3rdparty/freetype/src/base/ftbase.o \
372 - 3rdparty/freetype/src/base/ftglyph.o \
373 - 3rdparty/freetype/src/base/ftmm.o \
374 - 3rdparty/freetype/src/base/ftbbox.o \
375 - 3rdparty/freetype/src/autohint/autohint.o \
376 - 3rdparty/freetype/src/cache/ftcache.o \
377 - 3rdparty/freetype/src/cff/cff.o \
378 - 3rdparty/freetype/src/cid/type1cid.o \
379 - 3rdparty/freetype/src/psaux/psaux.o \
380 - 3rdparty/freetype/src/psnames/psmodule.o \
381 - 3rdparty/freetype/src/raster/raster.o \
382 - 3rdparty/freetype/src/sfnt/sfnt.o \
383 - 3rdparty/freetype/src/smooth/smooth.o \
384 - 3rdparty/freetype/src/truetype/truetype.o \
385 - 3rdparty/freetype/src/type1/type1.o \
386 - 3rdparty/freetype/src/winfonts/winfnt.o \
387 - allmoc.o $(QT_MODULE_OBJ)
388 +OBJECTS =allmoc.o $(QT_MODULE_OBJ)
389 INTERFACES =
390 UICDECLS =
391 UICIMPLS =
392diff -ru qt-2.3.5_fresh/src/widgets/qcommonstyle.cpp qt-2.3.5/src/widgets/qcommonstyle.cpp
393 --- qt-2.3.5_fresh/src/widgets/qcommonstyle.cpp2003-05-13 15:56:12.000000000 +0200
394 +++ qt-2.3.5/src/widgets/qcommonstyle.cpp2003-05-13 15:58:19.000000000 +0200
395@@ -566,7 +566,7 @@
396 bool enabled, bool active )
397 {
398 #ifndef QT_NO_MENUBAR
399-#ifndef QT_NO_STYLE_SGI
400+#if 1 // #ifndef QT_NO_STYLE_SGI
401 if (draw_menu_bar_impl != 0) {
402 QDrawMenuBarItemImpl impl = draw_menu_bar_impl;
403 (this->*impl)(p, x, y, w, h, mi, g, enabled, active);
404Nur in qt-2.3.5/src/widgets: qcommonstyle.cpp.orig.
405diff -ru qt-2.3.5_fresh/src/widgets/qlistview.cpp qt-2.3.5/src/widgets/qlistview.cpp
406 --- qt-2.3.5_fresh/src/widgets/qlistview.cpp2003-05-13 15:56:12.000000000 +0200
407 +++ qt-2.3.5/src/widgets/qlistview.cpp2003-05-13 15:58:18.000000000 +0200
408@@ -4968,9 +4968,9 @@
409 l = l->childItem ? l->childItem : l->siblingItem;
410
411 if ( l && l->height() )
412 -s.setHeight( s.height() + 10 * l->height() );
413- else
414 -s.setHeight( s.height() + 140 );
415 +s.setHeight( s.height() + 4 /*10*/ * l->height() );
416+ else // ^v much too big for handhelds
417 +s.setHeight( s.height() + 30 /*140*/ );
418
419 if ( s.width() > s.height() * 3 )
420 s.setHeight( s.width() / 3 );
421diff -ru qt-2.3.5_fresh/src/widgets/qtoolbutton.cpp qt-2.3.5/src/widgets/qtoolbutton.cpp
422 --- qt-2.3.5_fresh/src/widgets/qtoolbutton.cpp2003-05-13 15:56:12.000000000 +0200
423 +++ qt-2.3.5/src/widgets/qtoolbutton.cpp2003-05-13 15:58:18.000000000 +0200
424@@ -230,7 +230,7 @@
425 else
426 QToolTip::add( this, textLabel );
427 }
428 -#endif
429+#endif
430 }
431
432
433@@ -324,12 +324,12 @@
434 QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Large, QIconSet::Normal);
435 w = pm.width();
436 h = pm.height();
437 -if ( w < 32 )
438 - w = 32;
439 -if ( h < 32 )
440 - h = 32;
441 +if ( w < 24 )
442 + w = 24;
443 +if ( h < 24 )
444 + h = 24;
445 } else {
446 -w = h = 16;
447 +w = h = 14;
448 QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Small, QIconSet::Normal);
449 w = pm.width();
450 h = pm.height();