diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/widgets/qcombobox.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp index ba771f7ce9..05724e3d92 100644 --- a/src/widgets/widgets/qcombobox.cpp +++ b/src/widgets/widgets/qcombobox.cpp @@ -1843,6 +1843,7 @@ void QComboBox::setLineEdit(QLineEdit *edit) d->lineEdit->setFocusProxy(this); d->lineEdit->setAttribute(Qt::WA_MacShowFocusRect, false); +#if QT_CONFIG(completer) // create a default completer if (!d->lineEdit->completer()) { QCompleter *completer = new QCompleter(d->model, d->lineEdit); @@ -1860,6 +1861,7 @@ void QComboBox::setLineEdit(QLineEdit *edit) // sets up connections setCompleter(completer); } +#endif setAttribute(Qt::WA_InputMethodEnabled); d->updateLayoutDirection(); |