diff options
author | Titta Heikkala <EXT-Titta.2.Heikkala@nokia.com> | 2011-03-28 06:50:22 (GMT) |
---|---|---|
committer | Titta Heikkala <EXT-Titta.2.Heikkala@nokia.com> | 2011-03-28 06:50:22 (GMT) |
commit | 85360044130a13f7041e5291334423ad0b180cb3 (patch) | |
tree | 4769ee456eadbb69c3f64a202e8d1cfb41526fdc /src/gui | |
parent | f5542efa32c0e28f28b361c554f9ae2c3f6fc546 (diff) | |
download | Qt-85360044130a13f7041e5291334423ad0b180cb3.zip Qt-85360044130a13f7041e5291334423ad0b180cb3.tar.gz Qt-85360044130a13f7041e5291334423ad0b180cb3.tar.bz2 |
Removed useless Exit button in Symbian^3
In Symbian^3 clearing softkeys with -1 value resulted useless Exit
button. EAknSoftkeyEmpty is used instead to remove the extra button.
There is no flickering with softkeys when using EAknSoftkeyEmtpy with
Symbian^3.
Task-number: QT-4557
Reviewed-by: Sami Merila
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qsoftkeymanager_s60.cpp | 8 |
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(); } |