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/kernel | |
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/kernel')
-rw-r--r-- | src/widgets/kernel/qwidget.cpp | 30 | ||||
-rw-r--r-- | src/widgets/kernel/qwidget.h | 2 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 9211a24efd..74db6b5b8f 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -440,29 +440,6 @@ void QWidget::setInputContext(QInputContext *context) } -/*! - \obsolete - - This function can be called on the widget that currently has focus - to reset the input method operating on it. - - This function is providing for convenience, instead you should use - \l{QInputContext::}{reset()} on the input context that was - returned by inputContext(). - - \sa QInputContext, inputContext(), QInputContext::reset() -*/ -void QWidget::resetInputContext() -{ - if (!hasFocus()) - return; -#ifndef QT_NO_IM - QInputContext *qic = this->inputContext(); - if(qic) - qic->reset(); -#endif // QT_NO_IM -} - #ifdef QT_KEYPAD_NAVIGATION QPointer<QWidget> QWidgetPrivate::editingWidget; @@ -8265,13 +8242,6 @@ bool QWidget::event(QEvent *event) break; case QEvent::MouseButtonPress: - // Don't reset input context here. Whether reset or not is - // a responsibility of input method. reset() will be - // called by mouseHandler() of input method if necessary - // via mousePressEvent() of text widgets. -#if 0 - resetInputContext(); -#endif mousePressEvent((QMouseEvent*)event); break; diff --git a/src/widgets/kernel/qwidget.h b/src/widgets/kernel/qwidget.h index 65d5f4701c..91f09db449 100644 --- a/src/widgets/kernel/qwidget.h +++ b/src/widgets/kernel/qwidget.h @@ -714,8 +714,6 @@ public: Qt::InputMethodHints inputMethodHints() const; void setInputMethodHints(Qt::InputMethodHints hints); -protected: - void resetInputContext(); protected Q_SLOTS: void updateMicroFocus(); protected: |