diff options
author | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2011-09-23 12:13:39 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-28 03:18:03 +0200 |
commit | 3b6bb13e6a197bb4ba85b397ae9d2b8c659d6b26 (patch) | |
tree | b363444987dce3d2f74af1d3fc765366e04c954b /src/widgets/widgets/qlineedit_p.cpp | |
parent | 36850d5cecd37d00d296428739a9e01f00228421 (diff) |
Removed obsolete QWidget::resetInputContext()
Replaced functionality with new QInputPanel interface.
Change-Id: I5543f725724b2b208dcf18366712a18b665439b2
Reviewed-on: http://codereview.qt-project.org/5630
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/widgets/widgets/qlineedit_p.cpp')
-rw-r--r-- | src/widgets/widgets/qlineedit_p.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/widgets/qlineedit_p.cpp b/src/widgets/widgets/qlineedit_p.cpp index 8511d0c9e5..cd7fa13b36 100644 --- a/src/widgets/widgets/qlineedit_p.cpp +++ b/src/widgets/widgets/qlineedit_p.cpp @@ -239,6 +239,14 @@ void QLineEditPrivate::updatePasswordEchoEditing(bool editing) q->setAttribute(Qt::WA_InputMethodEnabled, shouldEnableInputMethod()); } +void QLineEditPrivate::resetInputPanel() +{ + Q_Q(QLineEdit); + if (q->hasFocus() && qApp) { + qApp->inputPanel()->reset(); + } +} + /*! This function is not intended as polymorphic usage. Just a shared code fragment that calls QInputContext::mouseHandler for this |