author | zautrix <zautrix> | 2004-07-04 15:55:13 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-04 15:55:13 (UTC) |
commit | 0ccfa9c18a48c67f94fd5d35364f6da11202b449 (patch) (side-by-side diff) | |
tree | 74ec1364e979c10cf8b3d7c450f65f723ca26247 /kmicromail | |
parent | 646f439eea8e96d6abec0bcd10f4c46abe243f86 (diff) | |
download | kdepimpi-0ccfa9c18a48c67f94fd5d35364f6da11202b449.zip kdepimpi-0ccfa9c18a48c67f94fd5d35364f6da11202b449.tar.gz kdepimpi-0ccfa9c18a48c67f94fd5d35364f6da11202b449.tar.bz2 |
added bigger icons for KM
-rw-r--r-- | kmicromail/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp index f2879e8..a4f6a06 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp @@ -18,32 +18,35 @@ using namespace Opie::Core; int main( int argc, char **argv ) { #ifndef DESKTOP_VERSION QPEApplication a( argc, argv ); a.setKeepRunning (); #else QApplication a( argc, argv ); QApplication::setStyle( new QPlatinumStyle ()); #endif KGlobal::setAppName( "kmicromail" ); QString fileName ; #ifndef DESKTOP_VERSION fileName = getenv("QPEDIR"); + if ( QApplication::desktop()->width() > 320 ) + KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/icons22/"); + else KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); #else fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); #endif KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kmicromail"))); OpieMail* mw = new OpieMail(); #ifndef DESKTOP_VERSION //qDebug("CONNECT "); QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),mw, SLOT(message( const QCString&, const QByteArray& ))); a.showMainWidget(mw ); #else a.setMainWidget(mw ); m.show(); //m.resize( 800, 600 ); #endif |