-rw-r--r-- | kmicromail/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp index f2879e8..a4f6a06 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp | |||
@@ -30,9 +30,12 @@ int main( int argc, char **argv ) { | |||
30 | KGlobal::setAppName( "kmicromail" ); | 30 | KGlobal::setAppName( "kmicromail" ); |
31 | QString fileName ; | 31 | QString fileName ; |
32 | #ifndef DESKTOP_VERSION | 32 | #ifndef DESKTOP_VERSION |
33 | fileName = getenv("QPEDIR"); | 33 | fileName = getenv("QPEDIR"); |
34 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); | 34 | if ( QApplication::desktop()->width() > 320 ) |
35 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/icons22/"); | ||
36 | else | ||
37 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); | ||
35 | #else | 38 | #else |
36 | fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; | 39 | fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; |
37 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); | 40 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); |
38 | #endif | 41 | #endif |