-rw-r--r-- | library/qpeapplication.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 3ca6d73..c107a08 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp | |||
@@ -434,33 +434,34 @@ static void setMic( int t = 0, int percent = -1 ) | |||
434 | a QApplication, passing \a argc, \a argv, and \a t. | 434 | a QApplication, passing \a argc, \a argv, and \a t. |
435 | 435 | ||
436 | For applications, \a t should be the default, GuiClient. Only | 436 | For applications, \a t should be the default, GuiClient. Only |
437 | the Qtopia server passes GuiServer. | 437 | the Qtopia server passes GuiServer. |
438 | */ | 438 | */ |
439 | QPEApplication::QPEApplication( int & argc, char **argv, Type t ) | 439 | QPEApplication::QPEApplication( int & argc, char **argv, Type t ) |
440 | : QApplication( argc, argv, t ) | 440 | : QApplication( argc, argv, t ) |
441 | { | 441 | { |
442 | d = new QPEApplicationData; | 442 | d = new QPEApplicationData; |
443 | d->loadTextCodecs(); | 443 | d->loadTextCodecs(); |
444 | d->loadImageCodecs(); | 444 | d->loadImageCodecs(); |
445 | int dw = desktop() ->width(); | 445 | int dw = desktop() ->width(); |
446 | qWarning( "Width %d", dw ); | ||
446 | if ( dw < 200 ) { | 447 | if ( dw < 200 ) { |
447 | setFont( QFont( "helvetica", 8 ) ); | 448 | setFont( QFont( "helvetica", 8 ) ); |
448 | AppLnk::setSmallIconSize( 10 ); | 449 | AppLnk::setSmallIconSize( 10 ); |
449 | AppLnk::setBigIconSize( 28 ); | 450 | AppLnk::setBigIconSize( 28 ); |
450 | }else if ( dw > 600 ) { | 451 | }else if ( dw > 600 ) { |
451 | setFont( QFont( "helvetica", 12 ) ); | 452 | setFont( QFont( "helvetica", 12 ) ); |
452 | AppLnk::setSmallIconSize( 24 ); | 453 | AppLnk::setSmallIconSize( 24 ); |
453 | AppLnk::setBigIconSize( 48 ); | 454 | AppLnk::setBigIconSize( 48 ); |
454 | }else if ( dw > 400 ) { | 455 | }else if ( dw > 200 ) { |
455 | setFont( QFont( "helvetica", 12 ) ); | 456 | setFont( QFont( "helvetica", 12 ) ); |
456 | AppLnk::setSmallIconSize( 16 ); | 457 | AppLnk::setSmallIconSize( 16 ); |
457 | AppLnk::setBigIconSize( 32 ); | 458 | AppLnk::setBigIconSize( 32 ); |
458 | } | 459 | } |
459 | 460 | ||
460 | 461 | ||
461 | QMimeSourceFactory::setDefaultFactory( new ResourceMimeFactory ); | 462 | QMimeSourceFactory::setDefaultFactory( new ResourceMimeFactory ); |
462 | 463 | ||
463 | connect( this, SIGNAL( lastWindowClosed() ), this, SLOT( hideOrQuit() ) ); | 464 | connect( this, SIGNAL( lastWindowClosed() ), this, SLOT( hideOrQuit() ) ); |
464 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 465 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
465 | 466 | ||
466 | QString qcopfn( "/tmp/qcop-msg-" ); | 467 | QString qcopfn( "/tmp/qcop-msg-" ); |