author | drw <drw> | 2005-02-28 17:40:44 (UTC) |
---|---|---|
committer | drw <drw> | 2005-02-28 17:40:44 (UTC) |
commit | 772bc43173a3155ef08c769f1d01ef0ec7b31bcd (patch) (unidiff) | |
tree | 678a5cdeb431bca63299c3b595c26a0a6639a3f3 /qt/qt-2.3.10.patch | |
parent | 2b64a84d39eeed5681d0ee5068c7d11a01527750 (diff) | |
download | opie-772bc43173a3155ef08c769f1d01ef0ec7b31bcd.zip opie-772bc43173a3155ef08c769f1d01ef0ec7b31bcd.tar.gz opie-772bc43173a3155ef08c769f1d01ef0ec7b31bcd.tar.bz2 |
Added QT patch for QTabBar which fixes problems with the scroll buttons in OTabWidget
-rw-r--r-- | qt/qt-2.3.10.patch/qtabbar.patch | 39 | ||||
-rw-r--r-- | qt/qt-2.3.10.patch/qte-2.3.10-all.patch | 63 |
2 files changed, 88 insertions, 14 deletions
diff --git a/qt/qt-2.3.10.patch/qtabbar.patch b/qt/qt-2.3.10.patch/qtabbar.patch new file mode 100644 index 0000000..6940ec9 --- a/dev/null +++ b/qt/qt-2.3.10.patch/qtabbar.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- qt-2.3.10/src/widgets/qtabbar.cpp~qtabbar | ||
7 | +++ qt-2.3.10/src/widgets/qtabbar.cpp | ||
8 | @@ -260,7 +260,6 @@ | ||
9 | lstatic->insert( index, newTab ); | ||
10 | |||
11 | layoutTabs(); | ||
12 | - updateArrowButtons(); | ||
13 | makeVisible( tab( currentTab() ) ); | ||
14 | |||
15 | #ifndef QT_NO_ACCEL | ||
16 | @@ -282,7 +281,6 @@ | ||
17 | l->remove( t ); | ||
18 | lstatic->remove( t ); | ||
19 | layoutTabs(); | ||
20 | - updateArrowButtons(); | ||
21 | makeVisible( tab( currentTab() ) ); | ||
22 | update(); | ||
23 | } | ||
24 | @@ -887,6 +885,7 @@ | ||
25 | } | ||
26 | for ( t = lstatic->first(); t; t = lstatic->next() ) | ||
27 | t->r.setHeight( r.height() ); | ||
28 | + updateArrowButtons(); | ||
29 | } | ||
30 | |||
31 | /*! | ||
32 | @@ -977,7 +976,6 @@ | ||
33 | d->leftB->setGeometry( width() - 2*arrowWidth, 0, arrowWidth, height() ); | ||
34 | #endif | ||
35 | layoutTabs(); | ||
36 | - updateArrowButtons(); | ||
37 | makeVisible( tab( currentTab() )); | ||
38 | } | ||
39 | |||
diff --git a/qt/qt-2.3.10.patch/qte-2.3.10-all.patch b/qt/qt-2.3.10.patch/qte-2.3.10-all.patch index ab52716..24bac51 100644 --- a/qt/qt-2.3.10.patch/qte-2.3.10-all.patch +++ b/qt/qt-2.3.10.patch/qte-2.3.10-all.patch | |||
@@ -36,5 +36,5 @@ Index: qt-2.3.10/src/iconview/qiconview.cpp | |||
36 | @@ -2882,6 +2886,48 @@ | 36 | @@ -2882,6 +2886,48 @@ |
37 | } | 37 | } |
38 | 38 | ||
39 | /*! | 39 | /*! |
40 | + This function grabs all paintevents that otherwise would have been | 40 | + This function grabs all paintevents that otherwise would have been |
@@ -82,5 +82,5 @@ Index: qt-2.3.10/src/iconview/qiconview.cpp | |||
82 | \reimp | 82 | \reimp |
83 | */ | 83 | */ |
84 | 84 | ||
85 | @@ -4939,7 +4985,7 @@ | 85 | @@ -4939,7 +4985,7 @@ |
86 | if ( !d->rubber ) | 86 | if ( !d->rubber ) |
@@ -94,5 +94,5 @@ Index: qt-2.3.10/src/iconview/qiconview.cpp | |||
94 | @@ -5377,11 +5423,19 @@ | 94 | @@ -5377,11 +5423,19 @@ |
95 | return; | 95 | return; |
96 | 96 | ||
97 | if ( item->d->container1 && d->firstContainer ) { | 97 | if ( item->d->container1 && d->firstContainer ) { |
98 | -item->d->container1->items.removeRef( item ); | 98 | -item->d->container1->items.removeRef( item ); |
@@ -113,5 +113,5 @@ Index: qt-2.3.10/src/iconview/qiconview.cpp | |||
113 | } | 113 | } |
114 | item->d->container2 = 0; | 114 | item->d->container2 = 0; |
115 | 115 | ||
116 | Index: qt-2.3.10/src/iconview/qiconview.h | 116 | Index: qt-2.3.10/src/iconview/qiconview.h |
117 | =================================================================== | 117 | =================================================================== |
@@ -121,5 +121,5 @@ Index: qt-2.3.10/src/iconview/qiconview.h | |||
121 | virtual void contentsDropEvent( QDropEvent *e ); | 121 | virtual void contentsDropEvent( QDropEvent *e ); |
122 | #endif | 122 | #endif |
123 | 123 | ||
124 | + void bufferedPaintEvent( QPaintEvent* ); | 124 | + void bufferedPaintEvent( QPaintEvent* ); |
125 | virtual void resizeEvent( QResizeEvent* e ); | 125 | virtual void resizeEvent( QResizeEvent* e ); |
@@ -133,5 +133,5 @@ Index: qt-2.3.10/src/kernel/qgfxraster_qws.cpp | |||
133 | for( loopc2=0;loopc2<frontadd;loopc2++ ) | 133 | for( loopc2=0;loopc2<frontadd;loopc2++ ) |
134 | *(alphaptr++)=get_value_32(16,(unsigned char **)&temppos); | 134 | *(alphaptr++)=get_value_32(16,(unsigned char **)&temppos); |
135 | 135 | ||
136 | -PackType temp2; | 136 | -PackType temp2; |
137 | -unsigned char * cp; | 137 | -unsigned char * cp; |
@@ -150,5 +150,5 @@ Index: qt-2.3.10/src/kernel/qgfxraster_qws.cpp | |||
150 | temppos += 2; | 150 | temppos += 2; |
151 | } | 151 | } |
152 | 152 | ||
153 | Index: qt-2.3.10/src/kernel/qwindowsystem_qws.cpp | 153 | Index: qt-2.3.10/src/kernel/qwindowsystem_qws.cpp |
154 | =================================================================== | 154 | =================================================================== |
@@ -158,5 +158,5 @@ Index: qt-2.3.10/src/kernel/qwindowsystem_qws.cpp | |||
158 | { | 158 | { |
159 | } | 159 | } |
160 | 160 | ||
161 | +static void catchSegvSignal( int ) | 161 | +static void catchSegvSignal( int ) |
162 | +{ | 162 | +{ |
@@ -176,5 +176,5 @@ Index: qt-2.3.10/src/kernel/qwindowsystem_qws.cpp | |||
176 | @@ -1043,6 +1055,7 @@ | 176 | @@ -1043,6 +1055,7 @@ |
177 | } | 177 | } |
178 | 178 | ||
179 | signal(SIGPIPE, ignoreSignal); //we get it when we read | 179 | signal(SIGPIPE, ignoreSignal); //we get it when we read |
180 | + signal(SIGSEGV, catchSegvSignal); //recover the keyboard on crash | 180 | + signal(SIGSEGV, catchSegvSignal); //recover the keyboard on crash |
@@ -192,5 +192,5 @@ Index: qt-2.3.10/src/kernel/qwsdecoration_qws.h | |||
192 | - Menu=15, LastRegion=Menu }; | 192 | - Menu=15, LastRegion=Menu }; |
193 | + Menu=15, LastRegion=Menu, UserDefined = 100 }; | 193 | + Menu=15, LastRegion=Menu, UserDefined = 100 }; |
194 | 194 | ||
195 | virtual QRegion region(const QWidget *, const QRect &rect, Region r=All) = 0; | 195 | virtual QRegion region(const QWidget *, const QRect &rect, Region r=All) = 0; |
196 | virtual void close( QWidget * ); | 196 | virtual void close( QWidget * ); |
@@ -202,8 +202,8 @@ Index: qt-2.3.10/src/tools/qcstring.h | |||
202 | // We want to keep source compatibility for 2.x | 202 | // We want to keep source compatibility for 2.x |
203 | // ### TODO for 4.0: completely remove these and the cstr* functions | 203 | // ### TODO for 4.0: completely remove these and the cstr* functions |
204 | 204 | ||
205 | -#if !defined(QT_GENUINE_STR) | 205 | -#if !defined(QT_GENUINE_STR) |
206 | +#if 0 | 206 | +#if 0 |
207 | 207 | ||
208 | #undefstrlen | 208 | #undefstrlen |
209 | #define strlen qstrlen | 209 | #define strlen qstrlen |
@@ -258,5 +258,5 @@ Index: qt-2.3.10/src/widgets/qlistview.cpp | |||
258 | @@ -5051,9 +5051,9 @@ | 258 | @@ -5051,9 +5051,9 @@ |
259 | l = l->childItem ? l->childItem : l->siblingItem; | 259 | l = l->childItem ? l->childItem : l->siblingItem; |
260 | 260 | ||
261 | if ( l && l->height() ) | 261 | if ( l && l->height() ) |
262 | -s.setHeight( s.height() + 10 * l->height() ); | 262 | -s.setHeight( s.height() + 10 * l->height() ); |
@@ -266,5 +266,5 @@ Index: qt-2.3.10/src/widgets/qlistview.cpp | |||
266 | + else // ^v much too big for handhelds | 266 | + else // ^v much too big for handhelds |
267 | +s.setHeight( s.height() + 30 /*140*/ ); | 267 | +s.setHeight( s.height() + 30 /*140*/ ); |
268 | 268 | ||
269 | if ( s.width() > s.height() * 3 ) | 269 | if ( s.width() > s.height() * 3 ) |
270 | s.setHeight( s.width() / 3 ); | 270 | s.setHeight( s.width() / 3 ); |
@@ -291,2 +291,37 @@ Index: qt-2.3.10/src/widgets/qtoolbutton.cpp | |||
291 | w = pm.width(); | 291 | w = pm.width(); |
292 | h = pm.height(); | 292 | h = pm.height(); |
293 | Index: qt-2.3.10/src/widgets/qtabbar.cpp | ||
294 | =================================================================== | ||
295 | --- qt-2.3.10.orig/src/widgets/qtabbar.cpp2005-02-27 18:07:41.000000000 -0600 | ||
296 | +++ qt-2.3.10/src/widgets/qtabbar.cpp2005-02-28 11:16:56.444377440 -0600 | ||
297 | @@ -260,7 +260,6 @@ | ||
298 | lstatic->insert( index, newTab ); | ||
299 | |||
300 | layoutTabs(); | ||
301 | - updateArrowButtons(); | ||
302 | makeVisible( tab( currentTab() ) ); | ||
303 | |||
304 | #ifndef QT_NO_ACCEL | ||
305 | @@ -282,7 +281,6 @@ | ||
306 | l->remove( t ); | ||
307 | lstatic->remove( t ); | ||
308 | layoutTabs(); | ||
309 | - updateArrowButtons(); | ||
310 | makeVisible( tab( currentTab() ) ); | ||
311 | update(); | ||
312 | } | ||
313 | @@ -887,6 +885,7 @@ | ||
314 | } | ||
315 | for ( t = lstatic->first(); t; t = lstatic->next() ) | ||
316 | t->r.setHeight( r.height() ); | ||
317 | + updateArrowButtons(); | ||
318 | } | ||
319 | |||
320 | /*! | ||
321 | @@ -977,7 +976,6 @@ | ||
322 | d->leftB->setGeometry( width() - 2*arrowWidth, 0, arrowWidth, height() ); | ||
323 | #endif | ||
324 | layoutTabs(); | ||
325 | - updateArrowButtons(); | ||
326 | makeVisible( tab( currentTab() )); | ||
327 | } | ||