author | zautrix <zautrix> | 2004-09-15 09:04:40 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-15 09:04:40 (UTC) |
commit | 8889ffd6f6958c3a1d07bafedcc8af5d786a1660 (patch) (unidiff) | |
tree | 50c8335d792e9142d8d864de04c0f9acdf82c820 /kaddressbook/mainembedded.cpp | |
parent | 3dc613bf5ba5a2c7bc7aef50fc00c2146206fefb (diff) | |
download | kdepimpi-8889ffd6f6958c3a1d07bafedcc8af5d786a1660.zip kdepimpi-8889ffd6f6958c3a1d07bafedcc8af5d786a1660.tar.gz kdepimpi-8889ffd6f6958c3a1d07bafedcc8af5d786a1660.tar.bz2 |
desktop compiling fixes
Diffstat (limited to 'kaddressbook/mainembedded.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/mainembedded.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 4230c07..4f48850 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp | |||
@@ -1,43 +1,44 @@ | |||
1 | #ifndef DESKTOP_VERSION | 1 | #ifndef DESKTOP_VERSION |
2 | #include <qpe/qpeapplication.h> | 2 | #include <qpe/qpeapplication.h> |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #else | 4 | #else |
5 | #include <qapplication.h> | 5 | #include <qapplication.h> |
6 | #include <qwindowsstyle.h> | 6 | #include <qwindowsstyle.h> |
7 | #include <qplatinumstyle.h> | 7 | #include <qplatinumstyle.h> |
8 | #include <qmainwindow.h> | 8 | #include <qmainwindow.h> |
9 | #endif | 9 | #endif |
10 | 10 | ||
11 | #include <kstandarddirs.h> | 11 | #include <kstandarddirs.h> |
12 | #include <qregexp.h> | ||
12 | #include <kglobal.h> | 13 | #include <kglobal.h> |
13 | #include <stdio.h> | 14 | #include <stdio.h> |
14 | #include <qdir.h> | 15 | #include <qdir.h> |
15 | #include "kaddressbookmain.h" | 16 | #include "kaddressbookmain.h" |
16 | #include "externalapphandler.h" | 17 | #include "externalapphandler.h" |
17 | 18 | ||
18 | int main( int argc, char **argv ) | 19 | int main( int argc, char **argv ) |
19 | { | 20 | { |
20 | #ifndef DESKTOP_VERSION | 21 | #ifndef DESKTOP_VERSION |
21 | QPEApplication a( argc, argv ); | 22 | QPEApplication a( argc, argv ); |
22 | a.setKeepRunning (); | 23 | a.setKeepRunning (); |
23 | #else | 24 | #else |
24 | QApplication a( argc, argv ); | 25 | QApplication a( argc, argv ); |
25 | QApplication::setStyle( new QPlatinumStyle ()); | 26 | QApplication::setStyle( new QPlatinumStyle ()); |
26 | QString hdir = QDir::homeDirPath(); | 27 | QString hdir = QDir::homeDirPath(); |
27 | // there is a bug when creating dirs for WIN 98 | 28 | // there is a bug when creating dirs for WIN 98 |
28 | // it is difficult to fix, because we have no WIN 98 runnung | 29 | // it is difficult to fix, because we have no WIN 98 runnung |
29 | // such that we try it to create the dirs at startup here | 30 | // such that we try it to create the dirs at startup here |
30 | if ( hdir == "C:\\" ) { // win 98 or ME | 31 | if ( hdir == "C:\\" ) { // win 98 or ME |
31 | QDir app_dir; | 32 | QDir app_dir; |
32 | if ( !app_dir.exists("C:\\kdepim") ) | 33 | if ( !app_dir.exists("C:\\kdepim") ) |
33 | app_dir.mkdir ("C:\\kdepim"); | 34 | app_dir.mkdir ("C:\\kdepim"); |
34 | if ( !app_dir.exists("C:\\kdepim\\apps") ) | 35 | if ( !app_dir.exists("C:\\kdepim\\apps") ) |
35 | app_dir.mkdir ("C:\\kdepim\\apps"); | 36 | app_dir.mkdir ("C:\\kdepim\\apps"); |
36 | if ( !app_dir.exists("C:\\kdepim\\config") ) | 37 | if ( !app_dir.exists("C:\\kdepim\\config") ) |
37 | app_dir.mkdir ("C:\\kdepim\\config"); | 38 | app_dir.mkdir ("C:\\kdepim\\config"); |
38 | if ( !app_dir.exists("C:\\kdepim\\apps\\kaddressbook") ) | 39 | if ( !app_dir.exists("C:\\kdepim\\apps\\kaddressbook") ) |
39 | app_dir.mkdir ("C:\\kdepim\\apps\\kaddressbook"); | 40 | app_dir.mkdir ("C:\\kdepim\\apps\\kaddressbook"); |
40 | } | 41 | } |
41 | #endif | 42 | #endif |
42 | 43 | ||
43 | bool exitHelp = false; | 44 | bool exitHelp = false; |