-rw-r--r-- | kmicromail/mainwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 4115276..98eb9a5 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -6,29 +6,33 @@ | |||
6 | #include <qtimer.h> | 6 | #include <qtimer.h> |
7 | #include <qlayout.h> | 7 | #include <qlayout.h> |
8 | //#include <kdialog.h> | 8 | //#include <kdialog.h> |
9 | #include <kiconloader.h> | 9 | #include <kiconloader.h> |
10 | #include <kapplication.h> | 10 | #include <kapplication.h> |
11 | 11 | ||
12 | #ifdef DESKTOP_VERSION | 12 | #ifdef DESKTOP_VERSION |
13 | #include <qapplication.h> | 13 | #include <qapplication.h> |
14 | #include <qstatusbar.h> | ||
15 | extern QStatusBar* globalSstatusBarMainWindow; | ||
14 | #else | 16 | #else |
15 | #include <qpe/qpeapplication.h> | 17 | #include <qpe/qpeapplication.h> |
16 | #endif | 18 | #endif |
17 | #include "defines.h" | 19 | #include "defines.h" |
18 | #include "mainwindow.h" | 20 | #include "mainwindow.h" |
19 | #include <KDGanttMinimizeSplitter.h> | 21 | #include <KDGanttMinimizeSplitter.h> |
20 | 22 | ||
21 | |||
22 | #include <kabc/stdaddressbook.h> | 23 | #include <kabc/stdaddressbook.h> |
23 | 24 | ||
24 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | 25 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) |
25 | : QMainWindow( parent, name ) //, flags ) | 26 | : QMainWindow( parent, name ) //, flags ) |
26 | { | 27 | { |
28 | #ifdef DESKTOP_VERSION | ||
29 | globalSstatusBarMainWindow = statusBar(); | ||
30 | #endif | ||
27 | setCaption( i18n( "KOpieMail/Pi" ) ); | 31 | setCaption( i18n( "KOpieMail/Pi" ) ); |
28 | setToolBarsMovable( false ); | 32 | setToolBarsMovable( false ); |
29 | //KABC::StdAddressBook::self(); | 33 | //KABC::StdAddressBook::self(); |
30 | toolBar = new QToolBar( this ); | 34 | toolBar = new QToolBar( this ); |
31 | menuBar = new QPEMenuBar( toolBar ); | 35 | menuBar = new QPEMenuBar( toolBar ); |
32 | mailMenu = new QPopupMenu( menuBar ); | 36 | mailMenu = new QPopupMenu( menuBar ); |
33 | menuBar->insertItem( i18n( "Mail" ), mailMenu ); | 37 | menuBar->insertItem( i18n( "Mail" ), mailMenu ); |
34 | settingsMenu = new QPopupMenu( menuBar ); | 38 | settingsMenu = new QPopupMenu( menuBar ); |