Diffstat (limited to 'noncore/apps/opie-console/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/main.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/main.cpp b/noncore/apps/opie-console/main.cpp index cf8bf05..4b5107e 100644 --- a/noncore/apps/opie-console/main.cpp +++ b/noncore/apps/opie-console/main.cpp | |||
@@ -1,14 +1,16 @@ | |||
1 | #include <qpe/qpeapplication.h> | 1 | #include <qpe/qpeapplication.h> |
2 | 2 | ||
3 | #include <mainwindow.h> | 3 | #include "mainwindow.h" |
4 | 4 | ||
5 | int main(int argc, char **argv) { | 5 | int main(int argc, char **argv) { |
6 | QPEApplication app( argc, argv ); | 6 | QPEApplication app( argc, argv ); |
7 | MainWindow* mw = new MainWindow(); | 7 | |
8 | app.setMainWidget( mw ); | 8 | MainWindow mw; |
9 | 9 | mw.setCaption(QObject::tr("Opie console") ); | |
10 | app.showMainWidget( &mw ); | ||
11 | |||
10 | app.exec(); | 12 | app.exec(); |
11 | 13 | ||
12 | delete mw; | 14 | |
13 | return 0; | 15 | return 0; |
14 | } | 16 | } |