summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kde.org>2015-07-07 16:23:21 +0300
committerBogDan Vatra <bogdan@kde.org>2015-07-30 07:06:27 +0000
commitd800047dc57a773149545d3705a70419884feb46 (patch)
tree0703f95ff37d332a47bb14935f79ec10be1d1b4b /tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
parent17caa9419045f88baceae6555deadfcf24f5d1b1 (diff)
QLineEdit should inherit the input methods from QComboBox.
Task-number: QTBUG-39088 Change-Id: I4dfe9a052c20a4cb0a9d6b0d3337cb5095a3694f Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp')
-rw-r--r--tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
index c409698ec0..7824172812 100644
--- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
@@ -164,6 +164,7 @@ private slots:
void keyboardSelection();
void setCustomModelAndView();
void updateDelegateOnEditableChange();
+ void task_QTBUG_39088_inputMethodHints();
};
class MyAbstractItemDelegate : public QAbstractItemDelegate
@@ -3169,5 +3170,13 @@ void tst_QComboBox::updateDelegateOnEditableChange()
}
}
+void tst_QComboBox::task_QTBUG_39088_inputMethodHints()
+{
+ QComboBox box;
+ box.setEditable(true);
+ box.setInputMethodHints(Qt::ImhNoPredictiveText);
+ QCOMPARE(box.lineEdit()->inputMethodHints(), Qt::ImhNoPredictiveText);
+}
+
QTEST_MAIN(tst_QComboBox)
#include "tst_qcombobox.moc"