Fix building with QT_NO_IM
Change-Id: Ibb5248d6392f6746dcdf398361bd38f9e98a7eb7 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
parent
a6b34517ec
commit
c359011dc5
@ -1765,7 +1765,9 @@ void QComboBox::setLineEdit(QLineEdit *edit)
|
|||||||
delete d->lineEdit;
|
delete d->lineEdit;
|
||||||
|
|
||||||
d->lineEdit = edit;
|
d->lineEdit = edit;
|
||||||
|
#ifndef QT_NO_IM
|
||||||
qt_widget_private(d->lineEdit)->inheritsInputMethodHints = 1;
|
qt_widget_private(d->lineEdit)->inheritsInputMethodHints = 1;
|
||||||
|
#endif
|
||||||
if (d->lineEdit->parent() != this)
|
if (d->lineEdit->parent() != this)
|
||||||
d->lineEdit->setParent(this);
|
d->lineEdit->setParent(this);
|
||||||
connect(d->lineEdit, SIGNAL(returnPressed()), this, SLOT(_q_returnPressed()));
|
connect(d->lineEdit, SIGNAL(returnPressed()), this, SLOT(_q_returnPressed()));
|
||||||
|
Loading…
Reference in New Issue
Block a user