-rw-r--r-- | library/qpeapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 2432b65..65fac84 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp | |||
@@ -464,33 +464,33 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t ) | |||
464 | d = new QPEApplicationData; | 464 | d = new QPEApplicationData; |
465 | d->loadTextCodecs(); | 465 | d->loadTextCodecs(); |
466 | d->loadImageCodecs(); | 466 | d->loadImageCodecs(); |
467 | int dw = desktop() ->width(); | 467 | int dw = desktop() ->width(); |
468 | qWarning( "Width %d", dw ); | 468 | qWarning( "Width %d", dw ); |
469 | if ( dw < 200 ) { | 469 | if ( dw < 200 ) { |
470 | setFont( QFont( "helvetica", 8 ) ); | 470 | setFont( QFont( "helvetica", 8 ) ); |
471 | AppLnk::setSmallIconSize( 10 ); | 471 | AppLnk::setSmallIconSize( 10 ); |
472 | AppLnk::setBigIconSize( 28 ); | 472 | AppLnk::setBigIconSize( 28 ); |
473 | } | 473 | } |
474 | else if ( dw > 600 ) { | 474 | else if ( dw > 600 ) { |
475 | setFont( QFont( "helvetica", 12 ) ); | 475 | setFont( QFont( "helvetica", 12 ) ); |
476 | AppLnk::setSmallIconSize( 24 ); | 476 | AppLnk::setSmallIconSize( 24 ); |
477 | AppLnk::setBigIconSize( 48 ); | 477 | AppLnk::setBigIconSize( 48 ); |
478 | } | 478 | } |
479 | else if ( dw > 200 ) { | 479 | else if ( dw > 200 ) { |
480 | setFont( QFont( "helvetica", 12 ) ); | 480 | setFont( QFont( "helvetica", 10 ) ); |
481 | AppLnk::setSmallIconSize( 16 ); | 481 | AppLnk::setSmallIconSize( 16 ); |
482 | AppLnk::setBigIconSize( 32 ); | 482 | AppLnk::setBigIconSize( 32 ); |
483 | } | 483 | } |
484 | 484 | ||
485 | 485 | ||
486 | QMimeSourceFactory::setDefaultFactory( new ResourceMimeFactory ); | 486 | QMimeSourceFactory::setDefaultFactory( new ResourceMimeFactory ); |
487 | 487 | ||
488 | connect( this, SIGNAL( lastWindowClosed() ), this, SLOT( hideOrQuit() ) ); | 488 | connect( this, SIGNAL( lastWindowClosed() ), this, SLOT( hideOrQuit() ) ); |
489 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 489 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
490 | 490 | ||
491 | QString qcopfn( "/tmp/qcop-msg-" ); | 491 | QString qcopfn( "/tmp/qcop-msg-" ); |
492 | qcopfn += QString( argv[ 0 ] ); // append command name | 492 | qcopfn += QString( argv[ 0 ] ); // append command name |
493 | 493 | ||
494 | QFile f( qcopfn ); | 494 | QFile f( qcopfn ); |
495 | if ( f.open( IO_ReadOnly ) ) { | 495 | if ( f.open( IO_ReadOnly ) ) { |
496 | flock( f.handle(), LOCK_EX ); | 496 | flock( f.handle(), LOCK_EX ); |