summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2010-03-19 09:12:32 (GMT)
committerSami Merila <sami.merila@nokia.com>2010-03-19 09:12:32 (GMT)
commitac0175b839ff326f15bd4de925f9ccd0390ac4e4 (patch)
tree88a7812c3d83d666c7ef9c5a58e38f0e7265de2d /src/gui
parent38f58e93e5e8af46d3822a04237e5ed919b28a7e (diff)
downloadQt-ac0175b839ff326f15bd4de925f9ccd0390ac4e4.zip
Qt-ac0175b839ff326f15bd4de925f9ccd0390ac4e4.tar.gz
Qt-ac0175b839ff326f15bd4de925f9ccd0390ac4e4.tar.bz2
Virtual Keyboard and double tap for Symbian support
For Sym^3 devices, we need to launch virtual keyboard with single tap of editing widget. This can be handled in the style by setting SH_RequestSoftwareInputPanel to RSIP_OnMouseClick with Sym^3 devices. For earlier devices, the stylehint remains as RSIP_OnMouseClickAndAlreadyFocused. Task-number: QT-3137 Reviewed-by: Janne Koskinen
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/styles/qs60style.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index a2ebebb..cd556b8 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2475,6 +2475,12 @@ int QS60Style::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget *w
{
int retValue = -1;
switch (sh) {
+ case SH_RequestSoftwareInputPanel:
+ if (QS60StylePrivate::isSingleClickUi())
+ retValue = RSIP_OnMouseClick;
+ else
+ retValue = RSIP_OnMouseClickAndAlreadyFocused;
+ break;
case SH_ComboBox_Popup:
retValue = true;
break;
@@ -2531,9 +2537,6 @@ int QS60Style::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget *w
case SH_UnderlineShortcut:
retValue = 0;
break;
- case SH_RequestSoftwareInputPanel:
- retValue = RSIP_OnMouseClickAndAlreadyFocused;
- break;
case SH_FormLayoutWrapPolicy:
retValue = QFormLayout::WrapLongRows;
break;