Diffstat (limited to 'noncore/apps/tinykate/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/apps/tinykate/main.cpp b/noncore/apps/tinykate/main.cpp index e92df69..e06668a 100644 --- a/noncore/apps/tinykate/main.cpp +++ b/noncore/apps/tinykate/main.cpp | |||
@@ -13,17 +13,16 @@ | |||
13 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * | 13 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | #include <qpe/qpeapplication.h> | 16 | #include <qpe/qpeapplication.h> |
17 | #include <qmainwindow.h> | 17 | #include <qmainwindow.h> |
18 | #include "tinykate.h" | 18 | #include "tinykate.h" |
19 | 19 | ||
20 | 20 | ||
21 | int main( int argc, char ** argv ) | 21 | int main( int argc, char ** argv ) |
22 | { | 22 | { |
23 | QPEApplication a( argc, argv ); | 23 | QPEApplication a( argc, argv ); |
24 | 24 | ||
25 | TinyKate *m = new TinyKate(); | 25 | TinyKate m; |
26 | a.setMainWidget( m ); | 26 | a.showMainWidget(&m ); |
27 | m->showMaximized(); | ||
28 | return a.exec(); | 27 | return a.exec(); |
29 | } | 28 | } |