-rw-r--r-- | qt/qt-2.3.7.patch/qte237-all.patch | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/qt/qt-2.3.7.patch/qte237-all.patch b/qt/qt-2.3.7.patch/qte237-all.patch index e6cf0a4..cb09109 100644 --- a/qt/qt-2.3.7.patch/qte237-all.patch +++ b/qt/qt-2.3.7.patch/qte237-all.patch | |||
@@ -326,96 +326,247 @@ diff -ru qt-2.3.5_fresh/src/kernel/qwindowsystem_qws.cpp qt-2.3.5/src/kernel/qwi | |||
326 | { | 326 | { |
327 | } | 327 | } |
328 | 328 | ||
329 | +static void catchSegvSignal( int ) | 329 | +static void catchSegvSignal( int ) |
330 | +{ | 330 | +{ |
331 | +#ifndef QT_NO_QWS_KEYBOARD | 331 | +#ifndef QT_NO_QWS_KEYBOARD |
332 | + if ( qwsServer ) | 332 | + if ( qwsServer ) |
333 | +qwsServer->closeKeyboard(); | 333 | +qwsServer->closeKeyboard(); |
334 | +#endif | 334 | +#endif |
335 | + QWSServer::closedown(); | 335 | + QWSServer::closedown(); |
336 | + fprintf(stderr, "Segmentation fault.\n"); | 336 | + fprintf(stderr, "Segmentation fault.\n"); |
337 | + exit(1); | 337 | + exit(1); |
338 | +} | 338 | +} |
339 | + | 339 | + |
340 | + | 340 | + |
341 | /*! | 341 | /*! |
342 | \class QWSServer qwindowsystem_qws.h | 342 | \class QWSServer qwindowsystem_qws.h |
343 | \brief Server-specific functionality in Qt/Embedded | 343 | \brief Server-specific functionality in Qt/Embedded |
344 | @@ -912,6 +924,7 @@ | 344 | @@ -912,6 +924,7 @@ |
345 | } | 345 | } |
346 | 346 | ||
347 | signal(SIGPIPE, ignoreSignal); //we get it when we read | 347 | signal(SIGPIPE, ignoreSignal); //we get it when we read |
348 | + signal(SIGSEGV, catchSegvSignal); //recover the keyboard on crash | 348 | + signal(SIGSEGV, catchSegvSignal); //recover the keyboard on crash |
349 | #endif | 349 | #endif |
350 | focusw = 0; | 350 | focusw = 0; |
351 | mouseGrabber = 0; | 351 | mouseGrabber = 0; |
352 | diff -ru qt-2.3.5_fresh/src/widgets/qcommonstyle.cpp qt-2.3.5/src/widgets/qcommonstyle.cpp | 352 | diff -ru qt-2.3.5_fresh/src/widgets/qcommonstyle.cpp qt-2.3.5/src/widgets/qcommonstyle.cpp |
353 | --- qt-2.3.5_fresh/src/widgets/qcommonstyle.cpp2003-05-13 15:56:12.000000000 +0200 | 353 | --- qt-2.3.5_fresh/src/widgets/qcommonstyle.cpp2003-05-13 15:56:12.000000000 +0200 |
354 | +++ qt-2.3.5/src/widgets/qcommonstyle.cpp2003-05-13 15:58:19.000000000 +0200 | 354 | +++ qt-2.3.5/src/widgets/qcommonstyle.cpp2003-05-13 15:58:19.000000000 +0200 |
355 | @@ -566,7 +566,7 @@ | 355 | @@ -566,7 +566,7 @@ |
356 | bool enabled, bool active ) | 356 | bool enabled, bool active ) |
357 | { | 357 | { |
358 | #ifndef QT_NO_MENUBAR | 358 | #ifndef QT_NO_MENUBAR |
359 | -#ifndef QT_NO_STYLE_SGI | 359 | -#ifndef QT_NO_STYLE_SGI |
360 | +#if 1 // #ifndef QT_NO_STYLE_SGI | 360 | +#if 1 // #ifndef QT_NO_STYLE_SGI |
361 | if (draw_menu_bar_impl != 0) { | 361 | if (draw_menu_bar_impl != 0) { |
362 | QDrawMenuBarItemImpl impl = draw_menu_bar_impl; | 362 | QDrawMenuBarItemImpl impl = draw_menu_bar_impl; |
363 | (this->*impl)(p, x, y, w, h, mi, g, enabled, active); | 363 | (this->*impl)(p, x, y, w, h, mi, g, enabled, active); |
364 | Nur in qt-2.3.5/src/widgets: qcommonstyle.cpp.orig. | 364 | Nur in qt-2.3.5/src/widgets: qcommonstyle.cpp.orig. |
365 | diff -ru qt-2.3.5_fresh/src/widgets/qlistview.cpp qt-2.3.5/src/widgets/qlistview.cpp | 365 | diff -ru qt-2.3.5_fresh/src/widgets/qlistview.cpp qt-2.3.5/src/widgets/qlistview.cpp |
366 | --- qt-2.3.5_fresh/src/widgets/qlistview.cpp2003-05-13 15:56:12.000000000 +0200 | 366 | --- qt-2.3.5_fresh/src/widgets/qlistview.cpp2003-05-13 15:56:12.000000000 +0200 |
367 | +++ qt-2.3.5/src/widgets/qlistview.cpp2003-05-13 15:58:18.000000000 +0200 | 367 | +++ qt-2.3.5/src/widgets/qlistview.cpp2003-05-13 15:58:18.000000000 +0200 |
368 | @@ -4968,9 +4968,9 @@ | 368 | @@ -4968,9 +4968,9 @@ |
369 | l = l->childItem ? l->childItem : l->siblingItem; | 369 | l = l->childItem ? l->childItem : l->siblingItem; |
370 | 370 | ||
371 | if ( l && l->height() ) | 371 | if ( l && l->height() ) |
372 | -s.setHeight( s.height() + 10 * l->height() ); | 372 | -s.setHeight( s.height() + 10 * l->height() ); |
373 | - else | 373 | - else |
374 | -s.setHeight( s.height() + 140 ); | 374 | -s.setHeight( s.height() + 140 ); |
375 | +s.setHeight( s.height() + 4 /*10*/ * l->height() ); | 375 | +s.setHeight( s.height() + 4 /*10*/ * l->height() ); |
376 | + else // ^v much too big for handhelds | 376 | + else // ^v much too big for handhelds |
377 | +s.setHeight( s.height() + 30 /*140*/ ); | 377 | +s.setHeight( s.height() + 30 /*140*/ ); |
378 | 378 | ||
379 | if ( s.width() > s.height() * 3 ) | 379 | if ( s.width() > s.height() * 3 ) |
380 | s.setHeight( s.width() / 3 ); | 380 | s.setHeight( s.width() / 3 ); |
381 | diff -ru qt-2.3.5_fresh/src/widgets/qtoolbutton.cpp qt-2.3.5/src/widgets/qtoolbutton.cpp | 381 | diff -ru qt-2.3.5_fresh/src/widgets/qtoolbutton.cpp qt-2.3.5/src/widgets/qtoolbutton.cpp |
382 | --- qt-2.3.5_fresh/src/widgets/qtoolbutton.cpp2003-05-13 15:56:12.000000000 +0200 | 382 | --- qt-2.3.5_fresh/src/widgets/qtoolbutton.cpp2003-05-13 15:56:12.000000000 +0200 |
383 | +++ qt-2.3.5/src/widgets/qtoolbutton.cpp2003-05-13 15:58:18.000000000 +0200 | 383 | +++ qt-2.3.5/src/widgets/qtoolbutton.cpp2003-05-13 15:58:18.000000000 +0200 |
384 | @@ -230,7 +230,7 @@ | 384 | @@ -230,7 +230,7 @@ |
385 | else | 385 | else |
386 | QToolTip::add( this, textLabel ); | 386 | QToolTip::add( this, textLabel ); |
387 | } | 387 | } |
388 | -#endif | 388 | -#endif |
389 | +#endif | 389 | +#endif |
390 | } | 390 | } |
391 | 391 | ||
392 | 392 | ||
393 | @@ -324,12 +324,12 @@ | 393 | @@ -324,12 +324,12 @@ |
394 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Large, QIconSet::Normal); | 394 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Large, QIconSet::Normal); |
395 | w = pm.width(); | 395 | w = pm.width(); |
396 | h = pm.height(); | 396 | h = pm.height(); |
397 | -if ( w < 32 ) | 397 | -if ( w < 32 ) |
398 | - w = 32; | 398 | - w = 32; |
399 | -if ( h < 32 ) | 399 | -if ( h < 32 ) |
400 | - h = 32; | 400 | - h = 32; |
401 | +if ( w < 24 ) | 401 | +if ( w < 24 ) |
402 | + w = 24; | 402 | + w = 24; |
403 | +if ( h < 24 ) | 403 | +if ( h < 24 ) |
404 | + h = 24; | 404 | + h = 24; |
405 | } else { | 405 | } else { |
406 | -w = h = 16; | 406 | -w = h = 16; |
407 | +w = h = 14; | 407 | +w = h = 14; |
408 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Small, QIconSet::Normal); | 408 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Small, QIconSet::Normal); |
409 | w = pm.width(); | 409 | w = pm.width(); |
410 | h = pm.height(); | 410 | h = pm.height(); |
411 | --- qt-2.3.7/src/kernel/qkeyboard_qws.cpp~c7xxrotate2003-07-16 18:20:25.000000000 -0700 | 411 | --- qt-2.3.7/src/kernel/qkeyboard_qws.cpp~c7xxrotate2003-07-16 18:20:25.000000000 -0700 |
412 | +++ qt-2.3.7/src/kernel/qkeyboard_qws.cpp2003-12-07 15:54:10.000000000 -0800 | 412 | +++ qt-2.3.7/src/kernel/qkeyboard_qws.cpp2003-12-07 15:54:10.000000000 -0800 |
413 | @@ -238,7 +238,7 @@ | 413 | @@ -238,7 +238,7 @@ |
414 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 63 | 414 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 63 |
415 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 64 | 415 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 64 |
416 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 65 | 416 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 65 |
417 | - { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 66 | 417 | - { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 66 |
418 | + { Qt::Key_F14, 0xffff , 0xffff , 0xffff }, // 66 | 418 | + { Qt::Key_F14, 0xffff , 0xffff , 0xffff }, // 66 |
419 | { Qt::Key_Meta, 0xffff , 0xffff , 0xffff }, // 67 | 419 | { Qt::Key_Meta, 0xffff , 0xffff , 0xffff }, // 67 |
420 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 68 | 420 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 68 |
421 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 69 | 421 | { Qt::Key_unknown,0xffff , 0xffff , 0xffff }, // 69 |
422 | diff -ru qt-2.3.7/configs/linux-generic-g++-shared qte/configs/linux-generic-g++-shared | ||
423 | --- qt-2.3.7/configs/linux-generic-g++-shared2003-07-17 03:23:08.000000000 +0200 | ||
424 | +++ qte/configs/linux-generic-g++-shared2004-03-01 20:08:00.884254576 +0100 | ||
425 | @@ -36,7 +36,7 @@ | ||
426 | SYSCONF_LIBS_YACC= | ||
427 | |||
428 | # Linking applications | ||
429 | -SYSCONF_LINK = gcc | ||
430 | +SYSCONF_LINK = g++ | ||
431 | SYSCONF_LFLAGS = | ||
432 | SYSCONF_LIBS = | ||
433 | |||
434 | Nur in qte/configs: linux-generic-g++-shared~. | ||
435 | diff -ru qt-2.3.7/configs/linux-generic-g++-shared-debug qte/configs/linux-generic-g++-shared-debug | ||
436 | --- qt-2.3.7/configs/linux-generic-g++-shared-debug2003-07-17 03:23:08.000000000 +0200 | ||
437 | +++ qte/configs/linux-generic-g++-shared-debug2004-03-01 20:08:06.552392888 +0100 | ||
438 | @@ -36,7 +36,7 @@ | ||
439 | SYSCONF_LIBS_YACC= | ||
440 | |||
441 | # Linking applications | ||
442 | -SYSCONF_LINK = gcc | ||
443 | +SYSCONF_LINK = g++ | ||
444 | SYSCONF_LFLAGS = | ||
445 | SYSCONF_LIBS = | ||
446 | |||
447 | Nur in qte/configs: linux-generic-g++-shared-debug~. | ||
448 | diff -ru qt-2.3.7/configs/linux-generic-g++-static qte/configs/linux-generic-g++-static | ||
449 | --- qt-2.3.7/configs/linux-generic-g++-static2003-07-17 03:23:08.000000000 +0200 | ||
450 | +++ qte/configs/linux-generic-g++-static2004-03-01 20:08:11.410654320 +0100 | ||
451 | @@ -36,7 +36,7 @@ | ||
452 | SYSCONF_LIBS_YACC= | ||
453 | |||
454 | # Linking applications | ||
455 | -SYSCONF_LINK = gcc | ||
456 | +SYSCONF_LINK = g++ | ||
457 | SYSCONF_LFLAGS = | ||
458 | SYSCONF_LIBS = | ||
459 | |||
460 | Nur in qte/configs: linux-generic-g++-static~. | ||
461 | diff -ru qt-2.3.7/configs/linux-generic-g++-static-debug qte/configs/linux-generic-g++-static-debug | ||
462 | --- qt-2.3.7/configs/linux-generic-g++-static-debug2003-07-17 03:23:08.000000000 +0200 | ||
463 | +++ qte/configs/linux-generic-g++-static-debug2004-03-01 20:08:15.780989928 +0100 | ||
464 | @@ -36,7 +36,7 @@ | ||
465 | SYSCONF_LIBS_YACC= | ||
466 | |||
467 | # Linking applications | ||
468 | -SYSCONF_LINK = gcc | ||
469 | +SYSCONF_LINK = g++ | ||
470 | SYSCONF_LFLAGS = | ||
471 | SYSCONF_LIBS = | ||
472 | |||
473 | Nur in qte/configs: linux-generic-g++-static-debug~. | ||
474 | diff -ru qt-2.3.7/configs/linux-generic_rtti-g++-shared qte/configs/linux-generic_rtti-g++-shared | ||
475 | --- qt-2.3.7/configs/linux-generic_rtti-g++-shared2003-07-17 03:23:08.000000000 +0200 | ||
476 | +++ qte/configs/linux-generic_rtti-g++-shared2004-03-01 20:08:20.393288752 +0100 | ||
477 | @@ -36,7 +36,7 @@ | ||
478 | SYSCONF_LIBS_YACC= | ||
479 | |||
480 | # Linking applications | ||
481 | -SYSCONF_LINK = gcc | ||
482 | +SYSCONF_LINK = g++ | ||
483 | SYSCONF_LFLAGS = | ||
484 | SYSCONF_LIBS = | ||
485 | |||
486 | Nur in qte/configs: linux-generic_rtti-g++-shared~. | ||
487 | diff -ru qt-2.3.7/configs/linux-generic_rtti-g++-shared-debug qte/configs/linux-generic_rtti-g++-shared-debug | ||
488 | --- qt-2.3.7/configs/linux-generic_rtti-g++-shared-debug2003-07-17 03:23:08.000000000 +0200 | ||
489 | +++ qte/configs/linux-generic_rtti-g++-shared-debug2004-03-01 20:08:25.127569032 +0100 | ||
490 | @@ -36,7 +36,7 @@ | ||
491 | SYSCONF_LIBS_YACC= | ||
492 | |||
493 | # Linking applications | ||
494 | -SYSCONF_LINK = gcc | ||
495 | +SYSCONF_LINK = g++ | ||
496 | SYSCONF_LFLAGS = | ||
497 | SYSCONF_LIBS = | ||
498 | |||
499 | Nur in qte/configs: linux-generic_rtti-g++-shared-debug~. | ||
500 | diff -ru qt-2.3.7/configs/linux-generic_rtti-g++-static qte/configs/linux-generic_rtti-g++-static | ||
501 | --- qt-2.3.7/configs/linux-generic_rtti-g++-static2003-07-17 03:23:08.000000000 +0200 | ||
502 | +++ qte/configs/linux-generic_rtti-g++-static2004-03-01 20:08:29.727869680 +0100 | ||
503 | @@ -36,7 +36,7 @@ | ||
504 | SYSCONF_LIBS_YACC= | ||
505 | |||
506 | # Linking applications | ||
507 | -SYSCONF_LINK = gcc | ||
508 | +SYSCONF_LINK = g++ | ||
509 | SYSCONF_LFLAGS = | ||
510 | SYSCONF_LIBS = | ||
511 | |||
512 | Nur in qte/configs: linux-generic_rtti-g++-static~. | ||
513 | diff -ru qt-2.3.7/configs/linux-generic_rtti-g++-static-debug qte/configs/linux-generic_rtti-g++-static-debug | ||
514 | --- qt-2.3.7/configs/linux-generic_rtti-g++-static-debug2003-07-17 03:23:08.000000000 +0200 | ||
515 | +++ qte/configs/linux-generic_rtti-g++-static-debug2004-03-01 20:06:12.806684864 +0100 | ||
516 | @@ -36,7 +36,7 @@ | ||
517 | SYSCONF_LIBS_YACC= | ||
518 | |||
519 | # Linking applications | ||
520 | -SYSCONF_LINK = gcc | ||
521 | +SYSCONF_LINK = g++ | ||
522 | SYSCONF_LFLAGS = | ||
523 | SYSCONF_LIBS = | ||
524 | |||
525 | Nur in qte/configs: linux-generic_rtti-g++-static-debug~. | ||
526 | diff -ru qt-2.3.7/configs/linux-x86rtti-g++-shared qte/configs/linux-x86rtti-g++-shared | ||
527 | --- qt-2.3.7/configs/linux-x86rtti-g++-shared2003-07-17 03:23:10.000000000 +0200 | ||
528 | +++ qte/configs/linux-x86rtti-g++-shared2004-03-01 19:54:16.977507440 +0100 | ||
529 | @@ -36,7 +36,7 @@ | ||
530 | SYSCONF_LIBS_YACC= | ||
531 | |||
532 | # Linking applications | ||
533 | -SYSCONF_LINK = gcc | ||
534 | +SYSCONF_LINK = g++ | ||
535 | SYSCONF_LFLAGS = | ||
536 | SYSCONF_LIBS = -lm | ||
537 | |||
538 | diff -ru qt-2.3.7/configs/linux-x86rtti-g++-shared-debug qte/configs/linux-x86rtti-g++-shared-debug | ||
539 | --- qt-2.3.7/configs/linux-x86rtti-g++-shared-debug2003-07-17 03:23:10.000000000 +0200 | ||
540 | +++ qte/configs/linux-x86rtti-g++-shared-debug2004-03-01 19:54:24.064430064 +0100 | ||
541 | @@ -36,7 +36,7 @@ | ||
542 | SYSCONF_LIBS_YACC= | ||
543 | |||
544 | # Linking applications | ||
545 | -SYSCONF_LINK = gcc | ||
546 | +SYSCONF_LINK = g++ | ||
547 | SYSCONF_LFLAGS = | ||
548 | SYSCONF_LIBS = -lm | ||
549 | |||
550 | diff -ru qt-2.3.7/configs/linux-x86rtti-g++-static qte/configs/linux-x86rtti-g++-static | ||
551 | --- qt-2.3.7/configs/linux-x86rtti-g++-static2003-07-17 03:23:10.000000000 +0200 | ||
552 | +++ qte/configs/linux-x86rtti-g++-static2004-03-01 19:54:32.020220600 +0100 | ||
553 | @@ -36,7 +36,7 @@ | ||
554 | SYSCONF_LIBS_YACC= | ||
555 | |||
556 | # Linking applications | ||
557 | -SYSCONF_LINK = gcc | ||
558 | +SYSCONF_LINK = g++ | ||
559 | SYSCONF_LFLAGS = | ||
560 | SYSCONF_LIBS = -lm | ||
561 | |||
562 | diff -ru qt-2.3.7/configs/linux-x86rtti-g++-static-debug qte/configs/linux-x86rtti-g++-static-debug | ||
563 | --- qt-2.3.7/configs/linux-x86rtti-g++-static-debug2003-07-17 03:23:10.000000000 +0200 | ||
564 | +++ qte/configs/linux-x86rtti-g++-static-debug2004-03-01 19:54:41.434789368 +0100 | ||
565 | @@ -36,7 +36,7 @@ | ||
566 | SYSCONF_LIBS_YACC= | ||
567 | |||
568 | # Linking applications | ||
569 | -SYSCONF_LINK = gcc | ||
570 | +SYSCONF_LINK = g++ | ||
571 | SYSCONF_LFLAGS = | ||
572 | SYSCONF_LIBS = -lm | ||