Fix build with -no-feature-slider
Change-Id: I36e5c850068c2f9ac2ae078a3734ddb88d88c532 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
2bbeebf80c
commit
0f6cfd2217
@ -94,9 +94,9 @@ QAccessibleInterface *qAccessibleFactory(const QString &classname, QObject *obje
|
|||||||
} else if (classname == QLatin1String("QScrollBar")) {
|
} else if (classname == QLatin1String("QScrollBar")) {
|
||||||
iface = new QAccessibleScrollBar(widget);
|
iface = new QAccessibleScrollBar(widget);
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef QT_NO_SLIDER
|
||||||
} else if (classname == QLatin1String("QAbstractSlider")) {
|
} else if (classname == QLatin1String("QAbstractSlider")) {
|
||||||
iface = new QAccessibleAbstractSlider(widget);
|
iface = new QAccessibleAbstractSlider(widget);
|
||||||
#ifndef QT_NO_SLIDER
|
|
||||||
} else if (classname == QLatin1String("QSlider")) {
|
} else if (classname == QLatin1String("QSlider")) {
|
||||||
iface = new QAccessibleSlider(widget);
|
iface = new QAccessibleSlider(widget);
|
||||||
#endif
|
#endif
|
||||||
|
@ -143,6 +143,7 @@ protected:
|
|||||||
};
|
};
|
||||||
#endif // QT_NO_SPINBOX
|
#endif // QT_NO_SPINBOX
|
||||||
|
|
||||||
|
#if QT_CONFIG(slider)
|
||||||
class QAccessibleAbstractSlider: public QAccessibleWidget, public QAccessibleValueInterface
|
class QAccessibleAbstractSlider: public QAccessibleWidget, public QAccessibleValueInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -159,6 +160,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
QAbstractSlider *abstractSlider() const;
|
QAbstractSlider *abstractSlider() const;
|
||||||
};
|
};
|
||||||
|
#endif // QT_CONFIG(slider)
|
||||||
|
|
||||||
#ifndef QT_NO_SCROLLBAR
|
#ifndef QT_NO_SCROLLBAR
|
||||||
class QAccessibleScrollBar : public QAccessibleAbstractSlider
|
class QAccessibleScrollBar : public QAccessibleAbstractSlider
|
||||||
|
Loading…
Reference in New Issue
Block a user