author | zecke <zecke> | 2003-10-07 13:12:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-10-07 13:12:03 (UTC) |
commit | 23fd77c2b4ea230af2915d4ce3f2e75cefdedb2b (patch) (side-by-side diff) | |
tree | 242800673c3db80966ae9f8cd5dc8546c2e440ec /library/qpeapplication.cpp | |
parent | e125e425d7c25b32527726c416b347902294bfdf (diff) | |
download | opie-23fd77c2b4ea230af2915d4ce3f2e75cefdedb2b.zip opie-23fd77c2b4ea230af2915d4ce3f2e75cefdedb2b.tar.gz opie-23fd77c2b4ea230af2915d4ce3f2e75cefdedb2b.tar.bz2 |
ifndef -> if defined... we want big icons on high_res_small_phy
-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 cd1c62e..d4734ae 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -561,65 +561,65 @@ void QPEApplication::processQCopFile() ... } } \endcode \sa qcop.html Note that messages received here may be processed by qpe application and emitted as signals, such as flush() and reload(). */ /*! Constructs a QPEApplication just as you would construct a QApplication, passing \a argc, \a argv, and \a t. For applications, \a t should be the default, GuiClient. Only the Qtopia server passes GuiServer. */ QPEApplication::QPEApplication( int & argc, char **argv, Type t ) : QApplication( hack(argc), argv, t ), pidChannel( 0 ) { QPixmapCache::setCacheLimit(256); // sensible default for smaller devices. d = new QPEApplicationData; d->loadTextCodecs(); d->loadImageCodecs(); int dw = desktop() ->width(); if ( dw < 200 ) { setFont( QFont( "vera", 8 ) ); AppLnk::setSmallIconSize( 10 ); AppLnk::setBigIconSize( 28 ); } -#ifndef OPIE_HIGH_RES_SMALL_PHY +#if defined(OPIE_HIGH_RES_SMALL_PHY) else if ( dw > 600 ) { setFont( QFont( "vera", 16 ) ); AppLnk::setSmallIconSize( 24 ); AppLnk::setBigIconSize( 48 ); } #endif else if ( dw > 200 ) { setFont( QFont( "vera", 10 ) ); AppLnk::setSmallIconSize( 14 ); AppLnk::setBigIconSize( 32 ); } QMimeSourceFactory::setDefaultFactory( new ResourceMimeFactory ); connect( this, SIGNAL( lastWindowClosed() ), this, SLOT( hideOrQuit() ) ); sysChannel = new QCopChannel( "QPE/System", this ); connect( sysChannel, SIGNAL( received( const QCString &, const QByteArray & ) ), this, SLOT( systemMessage( const QCString &, const QByteArray & ) ) ); /* COde now in initapp */ #if 0 #if defined(Q_WS_QWS) && !defined(QT_NO_COP) QString qcopfn( "/tmp/qcop-msg-" ); qcopfn += QString( argv[ 0 ] ); // append command name QFile f( qcopfn ); if ( f.open( IO_ReadOnly ) ) { flock( f.handle(), LOCK_EX ); } |