author | zautrix <zautrix> | 2004-08-06 22:27:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 22:27:51 (UTC) |
commit | 81a027fdb113968401105258cf89b56b96987103 (patch) (unidiff) | |
tree | 1e5e91873d80618f296190c64bf4c056a3a79ea2 /kmicromail/main.cpp | |
parent | c07b730f8f38aabf365a67578df6140080824f10 (diff) | |
download | kdepimpi-81a027fdb113968401105258cf89b56b96987103.zip kdepimpi-81a027fdb113968401105258cf89b56b96987103.tar.gz kdepimpi-81a027fdb113968401105258cf89b56b96987103.tar.bz2 |
SOme change logs
-rw-r--r-- | kmicromail/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp index 8a093c6..22f1200 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp | |||
@@ -1,57 +1,58 @@ | |||
1 | // CHANGED 2004-08-06 Lutz Rogowski | ||
1 | 2 | ||
2 | #ifndef DESKTOP_VERSION | 3 | #ifndef DESKTOP_VERSION |
3 | #include <qpe/qpeapplication.h> | 4 | #include <qpe/qpeapplication.h> |
4 | #include <stdlib.h> | 5 | #include <stdlib.h> |
5 | #else | 6 | #else |
6 | #include <qapplication.h> | 7 | #include <qapplication.h> |
7 | #include <qstring.h> | 8 | #include <qstring.h> |
8 | #include <qwindowsstyle.h> | 9 | #include <qwindowsstyle.h> |
9 | #include <qplatinumstyle.h> | 10 | #include <qplatinumstyle.h> |
10 | #include <qsgistyle.h> | 11 | #include <qsgistyle.h> |
11 | #endif | 12 | #endif |
12 | #include "opiemail.h" | 13 | #include "opiemail.h" |
13 | #include <qdir.h> | 14 | #include <qdir.h> |
14 | #include <kstandarddirs.h> | 15 | #include <kstandarddirs.h> |
15 | #include <kglobal.h> | 16 | #include <kglobal.h> |
16 | #include <stdio.h> | 17 | #include <stdio.h> |
17 | #include "mainwindow.h" | 18 | #include "mainwindow.h" |
18 | 19 | ||
19 | using namespace Opie::Core; | 20 | using namespace Opie::Core; |
20 | int main( int argc, char **argv ) { | 21 | int main( int argc, char **argv ) { |
21 | 22 | ||
22 | #ifndef DESKTOP_VERSION | 23 | #ifndef DESKTOP_VERSION |
23 | QPEApplication a( argc, argv ); | 24 | QPEApplication a( argc, argv ); |
24 | a.setKeepRunning (); | 25 | a.setKeepRunning (); |
25 | #else | 26 | #else |
26 | QApplication a( argc, argv ); | 27 | QApplication a( argc, argv ); |
27 | QApplication::setStyle( new QPlatinumStyle ()); | 28 | QApplication::setStyle( new QPlatinumStyle ()); |
28 | #endif | 29 | #endif |
29 | 30 | ||
30 | KGlobal::setAppName( "kmicromail" ); | 31 | KGlobal::setAppName( "kmicromail" ); |
31 | QString fileName ; | 32 | QString fileName ; |
32 | #ifndef DESKTOP_VERSION | 33 | #ifndef DESKTOP_VERSION |
33 | fileName = getenv("QPEDIR"); | 34 | fileName = getenv("QPEDIR"); |
34 | if ( QApplication::desktop()->width() > 320 ) | 35 | if ( QApplication::desktop()->width() > 320 ) |
35 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/icons22/"); | 36 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/icons22/"); |
36 | else | 37 | else |
37 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); | 38 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); |
38 | #else | 39 | #else |
39 | fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; | 40 | fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; |
40 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); | 41 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); |
41 | #endif | 42 | #endif |
42 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kmicromail"))); | 43 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kmicromail"))); |
43 | OpieMail mw; | 44 | OpieMail mw; |
44 | #ifndef DESKTOP_VERSION | 45 | #ifndef DESKTOP_VERSION |
45 | //qDebug("CONNECT "); | 46 | //qDebug("CONNECT "); |
46 | QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& ))); | 47 | QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& ))); |
47 | a.showMainWidget(&mw ); | 48 | a.showMainWidget(&mw ); |
48 | #else | 49 | #else |
49 | a.setMainWidget(&mw ); | 50 | a.setMainWidget(&mw ); |
50 | mw.show(); | 51 | mw.show(); |
51 | //m.resize( 800, 600 ); | 52 | //m.resize( 800, 600 ); |
52 | QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); | 53 | QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); |
53 | #endif | 54 | #endif |
54 | int rv = a.exec(); | 55 | int rv = a.exec(); |
55 | return rv; | 56 | return rv; |
56 | 57 | ||
57 | } | 58 | } |