Fix building with QT_NO_IM

Change-Id: Ibb5248d6392f6746dcdf398361bd38f9e98a7eb7
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
Ulf Hermann 2015-09-28 11:46:17 +02:00
parent a6b34517ec
commit c359011dc5

View File

@ -1765,7 +1765,9 @@ void QComboBox::setLineEdit(QLineEdit *edit)
delete d->lineEdit;
d->lineEdit = edit;
#ifndef QT_NO_IM
qt_widget_private(d->lineEdit)->inheritsInputMethodHints = 1;
#endif
if (d->lineEdit->parent() != this)
d->lineEdit->setParent(this);
connect(d->lineEdit, SIGNAL(returnPressed()), this, SLOT(_q_returnPressed()));