From b87cada5e386e5a16ff04cf50bd88e97c4819099 Mon Sep 17 00:00:00 2001 From: Bartlomiej Moskal Date: Thu, 21 Jan 2021 11:04:55 +0100 Subject: Combobox: Fix initial set of inputMethodHints Fix for setting up initial inputMethodHints to Qt::ImhNoPredictiveText for Combobox. Before this change, Qt::ImhNoPredictiveText was never set for Combobox. As inputMethodHints() by default returns Qt::ImhNoPredictiveText value, setInputMethodHints didn't allow to set this value correctly. Task-number: QTBUG-61021 Pick-to: 5.15 6.0 Change-Id: Ie4ec0d32fff7586bc3a8bd055b752000c0330fad Reviewed-by: Mitch Curtis Reviewed-by: Assam Boudjelthia --- tests/auto/controls/data/tst_combobox.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml index 81955e3f..835a7b8d 100644 --- a/tests/auto/controls/data/tst_combobox.qml +++ b/tests/auto/controls/data/tst_combobox.qml @@ -157,6 +157,7 @@ TestCase { verify(control.delegate) verify(control.indicator) verify(control.popup) + compare(control.inputMethodHints, Qt.ImhNoPredictiveText) } function test_array() { -- cgit v1.2.3