summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@nokia.com>2011-03-31 07:59:20 (GMT)
committerJerome Pasion <jerome.pasion@nokia.com>2011-03-31 07:59:20 (GMT)
commit2d0dd40702fe2be32b41efa915e6e71c310c45f1 (patch)
tree42fa20cf37516569c6934bd754f4fd6f6878a06e /src/gui/kernel
parentf910b7cc12301e72b67fb85328cac878c2ad9994 (diff)
parent97902c7f81228fa669acc6e075681dc05b404b1a (diff)
downloadQt-2d0dd40702fe2be32b41efa915e6e71c310c45f1.zip
Qt-2d0dd40702fe2be32b41efa915e6e71c310c45f1.tar.gz
Qt-2d0dd40702fe2be32b41efa915e6e71c310c45f1.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt into 4.7
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qsoftkeymanager_s60.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qsoftkeymanager_s60.cpp b/src/gui/kernel/qsoftkeymanager_s60.cpp
index 3496297..09e2b5f 100644
--- a/src/gui/kernel/qsoftkeymanager_s60.cpp
+++ b/src/gui/kernel/qsoftkeymanager_s60.cpp
@@ -113,12 +113,20 @@ void QSoftKeyManagerPrivateS60::ensureCbaVisibilityAndResponsiviness(CEikButtonG
void QSoftKeyManagerPrivateS60::clearSoftkeys(CEikButtonGroupContainer &cba)
{
+#ifdef SYMBIAN_VERSION_SYMBIAN3
+ QT_TRAP_THROWING(
+ //EAknSoftkeyEmpty is used, because using -1 adds softkeys without actions on Symbian3
+ cba.SetCommandL(0, EAknSoftkeyEmpty, KNullDesC);
+ cba.SetCommandL(2, EAknSoftkeyEmpty, KNullDesC);
+ );
+#else
QT_TRAP_THROWING(
//Using -1 instead of EAknSoftkeyEmpty to avoid flickering.
cba.SetCommandL(0, -1, KNullDesC);
// TODO: Should we clear also middle SK?
cba.SetCommandL(2, -1, KNullDesC);
);
+#endif
realSoftKeyActions.clear();
}