From 410d9cabb76f56358944f61a810457b80bcbf65f Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Fri, 17 Feb 2017 14:11:01 +0100 Subject: [PATCH] Build fix for -no-feature-validator Change-Id: I884381964d692eb5d3eb9088c87779c03057981d Reviewed-by: Lars Knoll --- src/widgets/itemviews/qabstractitemdelegate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/itemviews/qabstractitemdelegate.cpp b/src/widgets/itemviews/qabstractitemdelegate.cpp index 8cd2a957be5..f63e258e8e0 100644 --- a/src/widgets/itemviews/qabstractitemdelegate.cpp +++ b/src/widgets/itemviews/qabstractitemdelegate.cpp @@ -537,11 +537,13 @@ bool QAbstractItemDelegatePrivate::tryFixup(QWidget *editor) #ifndef QT_NO_LINEEDIT if (QLineEdit *e = qobject_cast(editor)) { if (!e->hasAcceptableInput()) { +#if QT_CONFIG(validator) if (const QValidator *validator = e->validator()) { QString text = e->text(); validator->fixup(text); e->setText(text); } +#endif return e->hasAcceptableInput(); } }