summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
diff options
context:
space:
mode:
authorJyri Tahtela <jyri.tahtela@nokia.com>2011-05-13 11:30:46 (GMT)
committerJyri Tahtela <jyri.tahtela@nokia.com>2011-05-13 11:30:46 (GMT)
commit50ea2454c0ad9b28be6dd5125c74466f0f96d16a (patch)
tree610e8b4852bca7d23ec5c4b9937a119eed96a124 /src/gui/inputmethod/qcoefepinputcontext_s60.cpp
parent0f750aec4507fffc06acea46a513c6d374564d6a (diff)
parenta80130b07c5b8ee4b06eabbceb65eb23d4d4602e (diff)
downloadQt-50ea2454c0ad9b28be6dd5125c74466f0f96d16a.zip
Qt-50ea2454c0ad9b28be6dd5125c74466f0f96d16a.tar.gz
Qt-50ea2454c0ad9b28be6dd5125c74466f0f96d16a.tar.bz2
Merge remote-tracking branch 'qt/4.8'
Conflicts: src/s60installs/eabi/QtOpenGLu.def
Diffstat (limited to 'src/gui/inputmethod/qcoefepinputcontext_s60.cpp')
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_s60.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
index 06dc25c..a4d53c0 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
+++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
@@ -88,6 +88,11 @@ Q_GUI_EXPORT void qt_s60_setPartialScreenInputMode(bool enable)
ic->update();
}
+Q_GUI_EXPORT void qt_s60_setPartialScreenAutomaticTranslation(bool enable)
+{
+ S60->partial_keyboardAutoTranslation = enable;
+}
+
QCoeFepInputContext::QCoeFepInputContext(QObject *parent)
: QInputContext(parent),
m_fepState(q_check_ptr(new CAknEdwinState)), // CBase derived object needs check on new
@@ -559,12 +564,13 @@ void QCoeFepInputContext::ensureFocusWidgetVisible(QWidget *widget)
widget->resize(widget->width(), splitViewRect.height() - windowTop);
}
- if (gv->scene()) {
+ if (gv->scene() && S60->partial_keyboardAutoTranslation) {
const QRectF microFocusRect = gv->scene()->inputMethodQuery(Qt::ImMicroFocus).toRectF();
gv->ensureVisible(microFocusRect);
}
} else {
- translateInputWidget();
+ if (S60->partial_keyboardAutoTranslation)
+ translateInputWidget();
}
if (alwaysResize)