Fix build with -no-feature-slider

Change-Id: I36e5c850068c2f9ac2ae078a3734ddb88d88c532
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Paul Olav Tvete 2017-01-25 11:16:50 +01:00
parent 2bbeebf80c
commit 0f6cfd2217
2 changed files with 3 additions and 1 deletions

View File

@ -94,9 +94,9 @@ QAccessibleInterface *qAccessibleFactory(const QString &classname, QObject *obje
} else if (classname == QLatin1String("QScrollBar")) {
iface = new QAccessibleScrollBar(widget);
#endif
#ifndef QT_NO_SLIDER
} else if (classname == QLatin1String("QAbstractSlider")) {
iface = new QAccessibleAbstractSlider(widget);
#ifndef QT_NO_SLIDER
} else if (classname == QLatin1String("QSlider")) {
iface = new QAccessibleSlider(widget);
#endif

View File

@ -143,6 +143,7 @@ protected:
};
#endif // QT_NO_SPINBOX
#if QT_CONFIG(slider)
class QAccessibleAbstractSlider: public QAccessibleWidget, public QAccessibleValueInterface
{
public:
@ -159,6 +160,7 @@ public:
protected:
QAbstractSlider *abstractSlider() const;
};
#endif // QT_CONFIG(slider)
#ifndef QT_NO_SCROLLBAR
class QAccessibleScrollBar : public QAccessibleAbstractSlider