From c7d80486dee44c096ba993cbda8f69612441a264 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Thu, 4 Jun 2020 14:25:07 +0900 Subject: Fix build without features.completer Change-Id: Icaed1963d6306e36653d01ad9d05b68cb50717e5 Reviewed-by: Volker Hilsheimer --- src/widgets/widgets/qcombobox.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3