Fix build without features.im

invalid conversion from ‘int’ to ‘Qt::InputMethodHint’ [-fpermissive]

Change-Id: Icc67470ff6ef788b4f1b2eae46c6372b7f40c0d2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tasuku Suzuki 2021-04-13 18:46:41 +09:00
parent 94e03e506a
commit a63ceffa80

View File

@ -9675,16 +9675,16 @@ QVariant QWidget::inputMethodQuery(Qt::InputMethodQuery query) const
*/
Qt::InputMethodHints QWidget::inputMethodHints() const
{
#ifndef QT_NO_IM
#if QT_CONFIG(im)
const QWidgetPrivate *priv = d_func();
while (priv->inheritsInputMethodHints) {
priv = priv->q_func()->parentWidget()->d_func();
Q_ASSERT(priv);
}
return priv->imHints;
#else //QT_NO_IM
return 0;
#endif //QT_NO_IM
#else
return Qt::ImhNone;
#endif
}
void QWidget::setInputMethodHints(Qt::InputMethodHints hints)