summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/opie-common.control4
-rw-r--r--library/qpeapplication.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/library/opie-common.control b/library/opie-common.control
index 52048a3..1cdd465 100644
--- a/library/opie-common.control
+++ b/library/opie-common.control
@@ -1,10 +1,10 @@
1Package: opie-common 1Package: opie-common
2Files: etc/colors bin/opie-reorgfiles apps/*/.directory etc/mime.types apps/Settings/quit.desktop pics/logo/* 2Files: etc/colors bin/opie-reorgfiles apps/*/.directory etc/mime.types apps/Settings/quit.desktop pics/logo/*
3Priority: required 3Priority: required
4Section: opie/system 4Section: opie/system
5Maintainer: Project Opie <opie@handhelds.org> 5Maintainer: Project Opie <opie@handhelds.org>
6Architecture: arm 6Architecture: arm
7Version: $QPE_VERSION-$SUB_VERSION.2 7Version: $QPE_VERSION-$SUB_VERSION.3
8Depends: libqpe1, qte-fonts, qpf-helvetica 8Depends: libqpe1, qte-fonts, qpf-bitstream-vera
9Replaces: opie-base 9Replaces: opie-base
10Description: Core opie files 10Description: Core opie files
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 7f8299a..f4bfda9 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -505,43 +505,43 @@ static void setTreble( int t = 0, int percent = -1 )
505/*! 505/*!
506 Constructs a QPEApplication just as you would construct 506 Constructs a QPEApplication just as you would construct
507 a QApplication, passing \a argc, \a argv, and \a t. 507 a QApplication, passing \a argc, \a argv, and \a t.
508 508
509 For applications, \a t should be the default, GuiClient. Only 509 For applications, \a t should be the default, GuiClient. Only
510 the Qtopia server passes GuiServer. 510 the Qtopia server passes GuiServer.
511*/ 511*/
512QPEApplication::QPEApplication( int & argc, char **argv, Type t ) 512QPEApplication::QPEApplication( int & argc, char **argv, Type t )
513 : QApplication( argc, argv, t ) 513 : QApplication( argc, argv, t )
514{ 514{
515 d = new QPEApplicationData; 515 d = new QPEApplicationData;
516 d->loadTextCodecs(); 516 d->loadTextCodecs();
517 d->loadImageCodecs(); 517 d->loadImageCodecs();
518 int dw = desktop() ->width(); 518 int dw = desktop() ->width();
519 519
520 if ( dw < 200 ) { 520 if ( dw < 200 ) {
521 setFont( QFont( "helvetica", 8 ) ); 521 setFont( QFont( "vera", 8 ) );
522 AppLnk::setSmallIconSize( 10 ); 522 AppLnk::setSmallIconSize( 10 );
523 AppLnk::setBigIconSize( 28 ); 523 AppLnk::setBigIconSize( 28 );
524 } 524 }
525 else if ( dw > 600 ) { 525 else if ( dw > 600 ) {
526 setFont( QFont( "helvetica", 18 ) ); 526 setFont( QFont( "vera", 18 ) );
527 AppLnk::setSmallIconSize( 24 ); 527 AppLnk::setSmallIconSize( 24 );
528 AppLnk::setBigIconSize( 48 ); 528 AppLnk::setBigIconSize( 48 );
529 } 529 }
530 else if ( dw > 200 ) { 530 else if ( dw > 200 ) {
531 setFont( QFont( "helvetica", 10 ) ); 531 setFont( QFont( "vera", 10 ) );
532 AppLnk::setSmallIconSize( 14 ); 532 AppLnk::setSmallIconSize( 14 );
533 AppLnk::setBigIconSize( 32 ); 533 AppLnk::setBigIconSize( 32 );
534 } 534 }
535 535
536 536
537 QMimeSourceFactory::setDefaultFactory( new ResourceMimeFactory ); 537 QMimeSourceFactory::setDefaultFactory( new ResourceMimeFactory );
538 538
539 connect( this, SIGNAL( lastWindowClosed() ), this, SLOT( hideOrQuit() ) ); 539 connect( this, SIGNAL( lastWindowClosed() ), this, SLOT( hideOrQuit() ) );
540#if defined(Q_WS_QWS) && !defined(QT_NO_COP) 540#if defined(Q_WS_QWS) && !defined(QT_NO_COP)
541 541
542 QString qcopfn( "/tmp/qcop-msg-" ); 542 QString qcopfn( "/tmp/qcop-msg-" );
543 qcopfn += QString( argv[ 0 ] ); // append command name 543 qcopfn += QString( argv[ 0 ] ); // append command name
544 544
545 QFile f( qcopfn ); 545 QFile f( qcopfn );
546 if ( f.open( IO_ReadOnly ) ) { 546 if ( f.open( IO_ReadOnly ) ) {
547 flock( f.handle(), LOCK_EX ); 547 flock( f.handle(), LOCK_EX );
@@ -1023,33 +1023,33 @@ void QPEApplication::applyStyle()
1023 if ( nostyle & Opie::Force_Decoration ) 1023 if ( nostyle & Opie::Force_Decoration )
1024 dec = ""; 1024 dec = "";
1025 1025
1026 //qDebug ( "Setting Deco: %s -- old %s (%d)", dec.latin1(), d-> decorationName.latin1(), nostyle); 1026 //qDebug ( "Setting Deco: %s -- old %s (%d)", dec.latin1(), d-> decorationName.latin1(), nostyle);
1027 1027
1028 if ( dec != d->decorationName ) { 1028 if ( dec != d->decorationName ) {
1029 qwsSetDecoration( new QPEDecoration( dec ) ); 1029 qwsSetDecoration( new QPEDecoration( dec ) );
1030 d->decorationName = dec; 1030 d->decorationName = dec;
1031 } 1031 }
1032 1032
1033 // Font 1033 // Font
1034 QString ff = config.readEntry( "FontFamily", font().family() ); 1034 QString ff = config.readEntry( "FontFamily", font().family() );
1035 int fs = config.readNumEntry( "FontSize", font().pointSize() ); 1035 int fs = config.readNumEntry( "FontSize", font().pointSize() );
1036 1036
1037 // don't set a custom font 1037 // don't set a custom font
1038 if ( nostyle & Opie::Force_Font ) { 1038 if ( nostyle & Opie::Force_Font ) {
1039 ff = "Helvetica"; 1039 ff = "Vera";
1040 fs = 10; 1040 fs = 10;
1041 } 1041 }
1042 1042
1043 setFont ( QFont ( ff, fs ), true ); 1043 setFont ( QFont ( ff, fs ), true );
1044 1044
1045 // revert to global blocking policy ... 1045 // revert to global blocking policy ...
1046 Opie::force_appearance = config. readBoolEntry ( "ForceStyle", false ) ? Opie::Force_All : Opie::Force_None; 1046 Opie::force_appearance = config. readBoolEntry ( "ForceStyle", false ) ? Opie::Force_All : Opie::Force_None;
1047 Opie::force_appearance &= ~nostyle; 1047 Opie::force_appearance &= ~nostyle;
1048} 1048}
1049 1049
1050void QPEApplication::systemMessage( const QCString& msg, const QByteArray& data ) 1050void QPEApplication::systemMessage( const QCString& msg, const QByteArray& data )
1051{ 1051{
1052#ifdef Q_WS_QWS 1052#ifdef Q_WS_QWS
1053 QDataStream stream( data, IO_ReadOnly ); 1053 QDataStream stream( data, IO_ReadOnly );
1054 if ( msg == "applyStyle()" ) { 1054 if ( msg == "applyStyle()" ) {
1055 applyStyle(); 1055 applyStyle();