summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_s60.cpp
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/gui/kernel/qapplication_s60.cpp
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/gui/kernel/qapplication_s60.cpp')
-rw-r--r--src/gui/kernel/qapplication_s60.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 06e47a7..ea0c3a6 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -27,6 +27,7 @@
#endif
#include "private/qwindowsurface_s60_p.h"
#include "qpaintengine.h"
+#include "qmenubar.h"
#include "apgwgnam.h" // For CApaWindowGroupName
#include <MdaAudioTonePlayer.h> // For CMdaAudioToneUtility
@@ -1028,6 +1029,21 @@ bool QApplication::s60EventFilter(TWsEvent *aEvent)
return false;
}
+void QApplication::s60HandleCommandL(int command)
+{
+ switch (command) {
+ case EEikCmdExit:
+ case EAknSoftkeyBack:
+ case EAknSoftkeyExit:
+ qApp->exit();
+ break;
+ default:
+ // For now assume all unknown menu items are Qt menu items
+ QMenuBar::symbianCommands(command);
+ break;
+ }
+}
+
#ifndef QT_NO_WHEELEVENT
int QApplication::wheelScrollLines()
{