diff options
author | Pekka Vuorela <pvuorela@iki.fi> | 2012-09-04 00:32:29 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-11 09:35:28 +0200 |
commit | e06999bd625c8e787d429a1296739a68e48a4e6f (patch) | |
tree | 76ab97cce1508a5922619e94078b01231165a082 /tests/auto/widgets/kernel | |
parent | c3523bdde753daefd421e2ce228f0da0b70051ac (diff) |
Remove deprecated inputItem and inputWindow from QInputMethod
Interfaces introduced and deprecated during Qt5 development.
Change-Id: I804a02df8c4a03ed6558f4a86375f97d09513d5c
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests/auto/widgets/kernel')
-rw-r--r-- | tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index ad6bde7b70..d41bd856a3 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -352,7 +352,6 @@ private slots: void initialPosForDontShowOnScreenWidgets(); void updateOnDestroyedSignal(); void toplevelLineEditFocus(); - void inputFocus_task257832(); void focusWidget_task254563(); #ifndef Q_OS_WINCE_WM @@ -8869,18 +8868,6 @@ void tst_QWidget::rectOutsideCoordinatesLimit_task144779() } #endif -void tst_QWidget::inputFocus_task257832() -{ - QScopedPointer<QLineEdit> widget(new QLineEdit); - widget->setFocus(); - widget->winId(); // make sure, widget has been created - widget->show(); - QTRY_VERIFY(widget->hasFocus()); - QCOMPARE(qApp->inputMethod()->inputItem(), widget.data()); - widget->setReadOnly(true); - QVERIFY(!qApp->inputMethod()->inputItem()); -} - void tst_QWidget::setGraphicsEffect() { // Check that we don't have any effect by default. @@ -9004,19 +8991,7 @@ void tst_QWidget::focusProxyAndInputMethods() QVERIFY(QTest::qWaitForWindowActive(toplevel.data())); QVERIFY(toplevel->hasFocus()); QVERIFY(child->hasFocus()); - - // verify that toggling input methods on the child widget - // correctly propagate to the focus proxy's input method - // and that the input method gets the focus proxy passed - // as the focus widget instead of the child widget. - // otherwise input method queries go to the wrong widget - QCOMPARE(qApp->inputMethod()->inputItem(), toplevel.data()); - - toplevel->setAttribute(Qt::WA_InputMethodEnabled, false); - QVERIFY(!qApp->inputMethod()->inputItem()); - - toplevel->setAttribute(Qt::WA_InputMethodEnabled, true); - QCOMPARE(qApp->inputMethod()->inputItem(), toplevel.data()); + QCOMPARE(qApp->focusObject(), toplevel.data()); } #ifdef QT_BUILD_INTERNAL |