QComboBox: Fix compilation with QT_NO_COMPLETER
Change-Id: Ie57b06ebbddaa0801e265e6908da1548fe02085a Task-number: QTBUG-46871 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>bb10
parent
4b17bc3497
commit
c9dd554ea6
|
|
@ -2092,8 +2092,10 @@ void QComboBoxPrivate::setCurrentIndex(const QModelIndex &mi)
|
|||
const QString newText = itemText(normalized);
|
||||
if (lineEdit->text() != newText) {
|
||||
lineEdit->setText(newText);
|
||||
#ifndef QT_NO_COMPLETER
|
||||
if (lineEdit->completer())
|
||||
lineEdit->completer()->setCompletionPrefix(newText);
|
||||
#endif
|
||||
}
|
||||
updateLineEditGeometry();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue