author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kmicromail/main.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-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 fe4bc76..dc73455 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp | |||
@@ -2,8 +2,10 @@ | |||
2 | 2 | ||
3 | 3 | ||
4 | #ifndef DESKTOP_VERSION | 4 | #ifndef DESKTOP_VERSION |
5 | #include <qpe/qpeapplication.h> | 5 | #include <qpe/qpeapplication.h> |
6 | //Added by qt3to4: | ||
7 | #include <Q3CString> | ||
6 | #include <libkdepim/externalapphandler.h> | 8 | #include <libkdepim/externalapphandler.h> |
7 | #include <stdlib.h> | 9 | #include <stdlib.h> |
8 | #else | 10 | #else |
9 | #include <qapplication.h> | 11 | #include <qapplication.h> |
@@ -22,8 +24,9 @@ | |||
22 | #include <libkdepim/kpimglobalprefs.h> | 24 | #include <libkdepim/kpimglobalprefs.h> |
23 | void dumpMissing(); | 25 | void dumpMissing(); |
24 | //using namespace Opie::Core; | 26 | //using namespace Opie::Core; |
25 | int main( int argc, char **argv ) { | 27 | int main( int argc, char **argv ) { |
28 | if(!getenv("QPEDIR")) putenv("QPEDIR=/usr/lib/kdepimpi"); | ||
26 | 29 | ||
27 | #ifndef DESKTOP_VERSION | 30 | #ifndef DESKTOP_VERSION |
28 | QPEApplication a( argc, argv ); | 31 | QPEApplication a( argc, argv ); |
29 | a.setKeepRunning (); | 32 | a.setKeepRunning (); |
@@ -50,9 +53,9 @@ int main( int argc, char **argv ) { | |||
50 | QApplication::setFont( KOPrefs::instance()->mAppFont ); | 53 | QApplication::setFont( KOPrefs::instance()->mAppFont ); |
51 | OpieMail mw; | 54 | OpieMail mw; |
52 | #ifndef DESKTOP_VERSION | 55 | #ifndef DESKTOP_VERSION |
53 | //qDebug("CONNECT "); | 56 | //qDebug("CONNECT "); |
54 | QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& ))); | 57 | QObject::connect( &a, SIGNAL (appMessage ( const Q3CString &, const QByteArray & )),&mw, SLOT(message( const Q3CString&, const QByteArray& ))); |
55 | // QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); | 58 | // QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); |
56 | a.showMainWidget(&mw ); | 59 | a.showMainWidget(&mw ); |
57 | #else | 60 | #else |
58 | a.setMainWidget(&mw ); | 61 | a.setMainWidget(&mw ); |