Diffstat (limited to 'noncore/settings/aqpkg/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/main.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/noncore/settings/aqpkg/main.cpp b/noncore/settings/aqpkg/main.cpp index 53c392e..15ef9d6 100644 --- a/noncore/settings/aqpkg/main.cpp +++ b/noncore/settings/aqpkg/main.cpp | |||
@@ -12,15 +12,12 @@ | |||
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 14 | * (at your option) any later version. * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | #include <iostream> | ||
19 | using namespace std; | ||
20 | |||
21 | #ifdef QWS | 18 | #ifdef QWS |
22 | #include <qpe/qpeapplication.h> | 19 | #include <qpe/qpeapplication.h> |
23 | #include <qpe/qcopenvelope_qws.h> | 20 | #include <qpe/qcopenvelope_qws.h> |
24 | #else | 21 | #else |
25 | #include <qapplication.h> | 22 | #include <qapplication.h> |
26 | #endif | 23 | #endif |
@@ -32,34 +29,34 @@ using namespace std; | |||
32 | 29 | ||
33 | #include "global.h" | 30 | #include "global.h" |
34 | 31 | ||
35 | 32 | ||
36 | int main(int argc, char *argv[]) | 33 | int main(int argc, char *argv[]) |
37 | { | 34 | { |
38 | cout << "Root dir = " << ROOT << endl; | 35 | // cout << "Root dir = " << ROOT << endl; |
39 | #ifdef QWS | 36 | #ifdef QWS |
40 | QPEApplication a( argc, argv ); | 37 | QPEApplication a( argc, argv ); |
41 | #else | 38 | #else |
42 | QApplication a( argc, argv ); | 39 | QApplication a( argc, argv ); |
43 | #endif | 40 | #endif |
44 | 41 | ||
45 | #ifdef QWS | 42 | #ifdef QWS |
46 | // Disable suspend mode | 43 | // Disable suspend mode |
47 | cout << "Disabling suspend mode" << endl; | 44 | // cout << "Disabling suspend mode" << endl; |
48 | QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::DisableSuspend; | 45 | QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::DisableSuspend; |
49 | #endif | 46 | #endif |
50 | 47 | ||
51 | MainWindow *win = new MainWindow(); | 48 | MainWindow *win = new MainWindow(); |
52 | a.setMainWidget(win); | 49 | a.setMainWidget(win); |
53 | win->showMaximized(); | 50 | win->showMaximized(); |
54 | 51 | ||
55 | a.exec(); | 52 | a.exec(); |
56 | 53 | ||
57 | #ifdef QWS | 54 | #ifdef QWS |
58 | // Reenable suspend mode | 55 | // Reenable suspend mode |
59 | cout << "Enabling suspend mode" << endl; | 56 | // cout << "Enabling suspend mode" << endl; |
60 | QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Enable; | 57 | QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Enable; |
61 | #endif | 58 | #endif |
62 | #ifdef _DEBUG | 59 | #ifdef _DEBUG |
63 | DumpUnfreed(); | 60 | DumpUnfreed(); |
64 | #endif | 61 | #endif |
65 | } | 62 | } |