summaryrefslogtreecommitdiff
path: root/library
authorsandman <sandman>2002-10-13 22:05:30 (UTC)
committer sandman <sandman>2002-10-13 22:05:30 (UTC)
commitc94a9c3a93907d8a0c034e5b4c6d0a768d9fea7c (patch) (unidiff)
tree0b4610958aa515bd4b8aa87b070514d5a860dd3a /library
parent49269558da49b0429e4b13f4ed8ac2b3ac4f3513 (diff)
downloadopie-c94a9c3a93907d8a0c034e5b4c6d0a768d9fea7c.zip
opie-c94a9c3a93907d8a0c034e5b4c6d0a768d9fea7c.tar.gz
opie-c94a9c3a93907d8a0c034e5b4c6d0a768d9fea7c.tar.bz2
default font size should be 10pt .. 12pt is too big for 320x240
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp2
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 );