Fix build with -no-feature-lineedit

Change-Id: I171aed5d134db88f211da0e1a6ce236e32f3c35c
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Paul Olav Tvete 2017-01-26 11:48:27 +01:00
parent 798ed169d8
commit 0d3b3534ee
1 changed files with 4 additions and 0 deletions

View File

@ -81,10 +81,14 @@ QAbstractSpinBox *QAccessibleAbstractSpinBox::abstractSpinBox() const
QAccessibleInterface *QAccessibleAbstractSpinBox::lineEditIface() const
{
#if QT_CONFIG(lineedit)
// QAccessibleLineEdit is only used to forward the text functions
if (!lineEdit)
lineEdit = new QAccessibleLineEdit(abstractSpinBox()->lineEdit());
return lineEdit;
#else
return nullptr;
#endif
}
QString QAccessibleAbstractSpinBox::text(QAccessible::Text t) const