summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_s60.cpp
diff options
context:
space:
mode:
authorMarkku Luukkainen <markku.luukkainen@digia.com>2009-06-09 12:40:56 (GMT)
committerMarkku Luukkainen <markku.luukkainen@digia.com>2009-06-09 12:40:56 (GMT)
commit9bdd939c508dfe784402c5c3e85e26d135f7643c (patch)
tree5e74b1ae4558cea0b762fe4e382d88a5f8d455eb /src/gui/kernel/qwidget_s60.cpp
parent46cb3a09f4eedb2d4c612a6d73e9e0f14237350c (diff)
downloadQt-9bdd939c508dfe784402c5c3e85e26d135f7643c.zip
Qt-9bdd939c508dfe784402c5c3e85e26d135f7643c.tar.gz
Qt-9bdd939c508dfe784402c5c3e85e26d135f7643c.tar.bz2
Fixes from code review
Diffstat (limited to 'src/gui/kernel/qwidget_s60.cpp')
-rw-r--r--src/gui/kernel/qwidget_s60.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp
index 2a83fc7..cc6f794 100644
--- a/src/gui/kernel/qwidget_s60.cpp
+++ b/src/gui/kernel/qwidget_s60.cpp
@@ -61,31 +61,6 @@ extern bool qt_nograb();
QWidget *QWidgetPrivate::mouseGrabber = 0;
QWidget *QWidgetPrivate::keyboardGrabber = 0;
-static void mapSoftKeys(const QList <QAction*> &softkeys)
-{
-/* if (softkeys.count() == 1 && softkeys.at(0)->menuRole()==QAction::MenuSoftKey) {
- softkeys.at(0)->setNativePosition(0);
- softkeys.at(0)->setQtContextKey(Qt::Key_Context1);
- }
- else if(softkeys.count() == 1 && softkeys.at(0)->menuRole()!=QAction::MenuSoftKey) {
- softkeys.at(0)->setNativePosition(2);
- softkeys.at(0)->setQtContextKey(Qt::Key_Context1);
- }
- else {
- // FIX THIS
- // veryWeirdMagic is needes as s60 5th edition sdk always panics if cba is set with index 1, this hops over it
- // This needs further investigation why so that the hack can be removed
- int veryWeirdMagic = 0;
- for (int index = 0; index < softkeys.count(); index++) {
- softkeys.at(index)->setNativePosition(index + veryWeirdMagic);
- softkeys.at(index)->setQtContextKey(Qt::Key_Context1 + index);
- if (veryWeirdMagic == 0)
- veryWeirdMagic = 1;
- }
- }
-*/
-}
-
static bool isEqual(const QList<QAction*>& a, const QList<QAction*>& b)
{
if ( a.count() != b.count())
@@ -110,15 +85,12 @@ void QWidgetPrivate::setSoftKeys_sys(const QList<QAction*> &softkeys)
if (isEqual(old, softkeys ))
return;
}
-
CCoeAppUi* appui = CEikonEnv::Static()->AppUi();
CAknAppUi* aknAppUi = static_cast <CAknAppUi*>(appui);
CEikButtonGroupContainer* nativeContainer = aknAppUi->Cba();
nativeContainer->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY_WITH_IDS);
- mapSoftKeys(softkeys);
int placeInScreen=0;
-
for (int index = 0; index < softkeys.count(); index++) {
const QAction* softKeyAction = softkeys.at(index);
if (softKeyAction->softKeyRole() != QAction::ContextMenuSoftKey) {
@@ -135,7 +107,6 @@ void QWidgetPrivate::setSoftKeys_sys(const QList<QAction*> &softkeys)
}
if (placeInScreen==1)
placeInScreen=2;
-
}
}
@@ -1083,16 +1054,4 @@ void QWidget::activateWindow()
rw->SetOrdinalPosition(0);
}
}
-/*
-void QWidget::setSoftKeys(QSoftKeyAction *softKey)
-{
- Q_D(QWidget);
- d->
-}
-
-void QWidget::setSoftKeys(const QList<QSoftKeyAction*> &softkeys)
-{
- Q_D(QWidget);
-}
-*/
QT_END_NAMESPACE