Fix build without features.completer
Change-Id: Icaed1963d6306e36653d01ad9d05b68cb50717e5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
2073a16497
commit
c7d80486de
@ -1843,6 +1843,7 @@ void QComboBox::setLineEdit(QLineEdit *edit)
|
|||||||
d->lineEdit->setFocusProxy(this);
|
d->lineEdit->setFocusProxy(this);
|
||||||
d->lineEdit->setAttribute(Qt::WA_MacShowFocusRect, false);
|
d->lineEdit->setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||||
|
|
||||||
|
#if QT_CONFIG(completer)
|
||||||
// create a default completer
|
// create a default completer
|
||||||
if (!d->lineEdit->completer()) {
|
if (!d->lineEdit->completer()) {
|
||||||
QCompleter *completer = new QCompleter(d->model, d->lineEdit);
|
QCompleter *completer = new QCompleter(d->model, d->lineEdit);
|
||||||
@ -1860,6 +1861,7 @@ void QComboBox::setLineEdit(QLineEdit *edit)
|
|||||||
// sets up connections
|
// sets up connections
|
||||||
setCompleter(completer);
|
setCompleter(completer);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
setAttribute(Qt::WA_InputMethodEnabled);
|
setAttribute(Qt::WA_InputMethodEnabled);
|
||||||
d->updateLayoutDirection();
|
d->updateLayoutDirection();
|
||||||
|
Loading…
Reference in New Issue
Block a user