summaryrefslogtreecommitdiff
path: root/library
authorzecke <zecke>2002-09-10 14:27:11 (UTC)
committer zecke <zecke>2002-09-10 14:27:11 (UTC)
commita768f061a0e4ea279ab70aa2d3e109fc71cb8737 (patch) (side-by-side diff)
treee28952f0ee080942bb92bf347d16c21048a8a495 /library
parent8b59b498892b0e345d977ccd520087b660a91437 (diff)
downloadopie-a768f061a0e4ea279ab70aa2d3e109fc71cb8737.zip
opie-a768f061a0e4ea279ab70aa2d3e109fc71cb8737.tar.gz
opie-a768f061a0e4ea279ab70aa2d3e109fc71cb8737.tar.bz2
Icon size update
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp3
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
@@ -422,57 +422,58 @@ static void setMic( int t = 0, int percent = -1 )
...
}
}
\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( argc, argv, t )
{
d = new QPEApplicationData;
d->loadTextCodecs();
d->loadImageCodecs();
int dw = desktop() ->width();
+ qWarning( "Width %d", dw );
if ( dw < 200 ) {
setFont( QFont( "helvetica", 8 ) );
AppLnk::setSmallIconSize( 10 );
AppLnk::setBigIconSize( 28 );
}else if ( dw > 600 ) {
setFont( QFont( "helvetica", 12 ) );
AppLnk::setSmallIconSize( 24 );
AppLnk::setBigIconSize( 48 );
- }else if ( dw > 400 ) {
+ }else if ( dw > 200 ) {
setFont( QFont( "helvetica", 12 ) );
AppLnk::setSmallIconSize( 16 );
AppLnk::setBigIconSize( 32 );
}
QMimeSourceFactory::setDefaultFactory( new ResourceMimeFactory );
connect( this, SIGNAL( lastWindowClosed() ), this, SLOT( hideOrQuit() ) );
#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 );
}
sysChannel = new QCopChannel( "QPE/System", this );
connect( sysChannel, SIGNAL( received( const QCString &, const QByteArray & ) ),
this, SLOT( systemMessage( const QCString &, const QByteArray & ) ) );
QCString channel = QCString( argv[ 0 ] );