summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@kdab.com>2020-06-04 14:25:07 +0900
committerTasuku Suzuki <tasuku.suzuki@kdab.com>2020-06-05 07:02:28 +0900
commitc7d80486dee44c096ba993cbda8f69612441a264 (patch)
treed4892fead11e680d45ec1facae349c027a897503 /src/widgets/widgets
parent2073a1649782348ac870c1f0babdcc3f17ed41e8 (diff)
Fix build without features.completer
Change-Id: Icaed1963d6306e36653d01ad9d05b68cb50717e5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r--src/widgets/widgets/qcombobox.cpp2
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();