Fix build without features.completer

Change-Id: Icaed1963d6306e36653d01ad9d05b68cb50717e5
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tasuku Suzuki 2020-06-04 14:25:07 +09:00
parent 2073a16497
commit c7d80486de

View File

@ -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();