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:
parent
94e03e506a
commit
a63ceffa80
@ -9675,16 +9675,16 @@ QVariant QWidget::inputMethodQuery(Qt::InputMethodQuery query) const
|
|||||||
*/
|
*/
|
||||||
Qt::InputMethodHints QWidget::inputMethodHints() const
|
Qt::InputMethodHints QWidget::inputMethodHints() const
|
||||||
{
|
{
|
||||||
#ifndef QT_NO_IM
|
#if QT_CONFIG(im)
|
||||||
const QWidgetPrivate *priv = d_func();
|
const QWidgetPrivate *priv = d_func();
|
||||||
while (priv->inheritsInputMethodHints) {
|
while (priv->inheritsInputMethodHints) {
|
||||||
priv = priv->q_func()->parentWidget()->d_func();
|
priv = priv->q_func()->parentWidget()->d_func();
|
||||||
Q_ASSERT(priv);
|
Q_ASSERT(priv);
|
||||||
}
|
}
|
||||||
return priv->imHints;
|
return priv->imHints;
|
||||||
#else //QT_NO_IM
|
#else
|
||||||
return 0;
|
return Qt::ImhNone;
|
||||||
#endif //QT_NO_IM
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void QWidget::setInputMethodHints(Qt::InputMethodHints hints)
|
void QWidget::setInputMethodHints(Qt::InputMethodHints hints)
|
||||||
|
Loading…
Reference in New Issue
Block a user