summaryrefslogtreecommitdiffstats
path: root/src/s60main
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-05-07 14:21:59 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-05-07 14:21:59 (GMT)
commita453b87212595b91276ea7d9089ae2742d9bd403 (patch)
treefde70155c8122ed9147c9b590e981849767dc299 /src/s60main
parentc558e63625483ffa6f27ca439393d1fca499115d (diff)
downloadQt-a453b87212595b91276ea7d9089ae2742d9bd403.zip
Qt-a453b87212595b91276ea7d9089ae2742d9bd403.tar.gz
Qt-a453b87212595b91276ea7d9089ae2742d9bd403.tar.bz2
Moving the handling code for HandleCommandL from
CQtS60MainAppUi::HandleCommandL to the new QApplication::s60HandleCommandL so that it is in QtGui rather than in the static app wrapper. RevBy: axis
Diffstat (limited to 'src/s60main')
-rw-r--r--src/s60main/qts60mainappui.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/s60main/qts60mainappui.cpp b/src/s60main/qts60mainappui.cpp
index 016d49b..dafbe96 100644
--- a/src/s60main/qts60mainappui.cpp
+++ b/src/s60main/qts60mainappui.cpp
@@ -20,7 +20,6 @@
#include "qts60mainappui.h"
#include <QtGui/qapplication.h>
#include <QtGui/qmenu.h>
-#include <QtGui/qmenubar.h>
#include <QtGui/private/qt_s60_p.h>
// ============================ MEMBER FUNCTIONS ===============================
@@ -73,18 +72,8 @@ CQtS60MainAppUi::~CQtS60MainAppUi()
//
void CQtS60MainAppUi::HandleCommandL( TInt aCommand )
{
- switch (aCommand) {
- case EEikCmdExit:
- case EAknSoftkeyBack:
- case EAknSoftkeyExit:
- if (qApp)
- qApp->exit();
- break;
- default:
- // For now assume all unknown menu items are Qt menu items
- QMenuBar::symbianCommands(aCommand);
- break;
- }
+ if (qApp)
+ qApp->s60HandleCommandL(aCommand);
}
void CQtS60MainAppUi::HandleWsEventL(const TWsEvent& aEvent, CCoeControl *control)