summaryrefslogtreecommitdiffabout
path: root/kmicromail
authorzautrix <zautrix>2004-07-04 15:55:13 (UTC)
committer zautrix <zautrix>2004-07-04 15:55:13 (UTC)
commit0ccfa9c18a48c67f94fd5d35364f6da11202b449 (patch) (unidiff)
tree74ec1364e979c10cf8b3d7c450f65f723ca26247 /kmicromail
parent646f439eea8e96d6abec0bcd10f4c46abe243f86 (diff)
downloadkdepimpi-0ccfa9c18a48c67f94fd5d35364f6da11202b449.zip
kdepimpi-0ccfa9c18a48c67f94fd5d35364f6da11202b449.tar.gz
kdepimpi-0ccfa9c18a48c67f94fd5d35364f6da11202b449.tar.bz2
added bigger icons for KM
Diffstat (limited to 'kmicromail') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/main.cpp5
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
@@ -1,55 +1,58 @@
1 1
2#ifndef DESKTOP_VERSION 2#ifndef DESKTOP_VERSION
3#include <qpe/qpeapplication.h> 3#include <qpe/qpeapplication.h>
4#include <stdlib.h> 4#include <stdlib.h>
5#else 5#else
6#include <qapplication.h> 6#include <qapplication.h>
7#include <qstring.h> 7#include <qstring.h>
8#include <qwindowsstyle.h> 8#include <qwindowsstyle.h>
9#include <qplatinumstyle.h> 9#include <qplatinumstyle.h>
10#include <qsgistyle.h> 10#include <qsgistyle.h>
11#endif 11#endif
12#include "opiemail.h" 12#include "opiemail.h"
13#include <qdir.h> 13#include <qdir.h>
14#include <kstandarddirs.h> 14#include <kstandarddirs.h>
15#include <kglobal.h> 15#include <kglobal.h>
16#include <stdio.h> 16#include <stdio.h>
17#include "mainwindow.h" 17#include "mainwindow.h"
18 18
19using namespace Opie::Core; 19using namespace Opie::Core;
20int main( int argc, char **argv ) { 20int main( int argc, char **argv ) {
21 21
22#ifndef DESKTOP_VERSION 22#ifndef DESKTOP_VERSION
23 QPEApplication a( argc, argv ); 23 QPEApplication a( argc, argv );
24 a.setKeepRunning (); 24 a.setKeepRunning ();
25#else 25#else
26 QApplication a( argc, argv ); 26 QApplication a( argc, argv );
27 QApplication::setStyle( new QPlatinumStyle ()); 27 QApplication::setStyle( new QPlatinumStyle ());
28#endif 28#endif
29 29
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
39 KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kmicromail"))); 42 KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kmicromail")));
40 OpieMail* mw = new OpieMail(); 43 OpieMail* mw = new OpieMail();
41#ifndef DESKTOP_VERSION 44#ifndef DESKTOP_VERSION
42 //qDebug("CONNECT "); 45 //qDebug("CONNECT ");
43 QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),mw, SLOT(message( const QCString&, const QByteArray& ))); 46 QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),mw, SLOT(message( const QCString&, const QByteArray& )));
44 a.showMainWidget(mw ); 47 a.showMainWidget(mw );
45#else 48#else
46 a.setMainWidget(mw ); 49 a.setMainWidget(mw );
47 m.show(); 50 m.show();
48 //m.resize( 800, 600 ); 51 //m.resize( 800, 600 );
49#endif 52#endif
50 QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); 53 QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
51 int rv = a.exec(); 54 int rv = a.exec();
52 delete mw; 55 delete mw;
53 return rv; 56 return rv;
54 57
55} 58}