-rw-r--r-- | kmicromail/mainwindow.cpp | 2 | ||||
-rw-r--r-- | kmicromail/mainwindow.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 6df95c6..5793a58 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp @@ -26,7 +26,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) setToolBarsMovable( false ); //KABC::StdAddressBook::self(); toolBar = new QToolBar( this ); - menuBar = new QMenuBar( toolBar ); + menuBar = new QPEMenuBar( toolBar ); mailMenu = new QPopupMenu( menuBar ); menuBar->insertItem( tr( "Mail" ), mailMenu ); settingsMenu = new QPopupMenu( menuBar ); diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h index f5b81aa..680f0a9 100644 --- a/kmicromail/mainwindow.h +++ b/kmicromail/mainwindow.h @@ -8,7 +8,11 @@ #include <qaction.h> #include <qtoolbar.h> +#ifdef DESKTOP_VERSION #include <qmenubar.h> +#else +#include <qpe/qpemenubar.h> +#endif #include "accountview.h" #include "statuswidget.h" @@ -49,7 +53,7 @@ protected slots: protected: QToolBar *toolBar; StatusWidget *statusWidget; - QMenuBar *menuBar; + QPEMenuBar *menuBar; QPopupMenu *mailMenu, *settingsMenu; QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails, *editSettings, *editAccounts, *syncFolders; |