aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickpageindicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickpageindicator.cpp')
-rw-r--r--src/quicktemplates2/qquickpageindicator.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/quicktemplates2/qquickpageindicator.cpp b/src/quicktemplates2/qquickpageindicator.cpp
index e6e2a01d..92b6c0c0 100644
--- a/src/quicktemplates2/qquickpageindicator.cpp
+++ b/src/quicktemplates2/qquickpageindicator.cpp
@@ -89,8 +89,12 @@ class QQuickPageIndicatorPrivate : public QQuickControlPrivate, public QQuickIte
Q_DECLARE_PUBLIC(QQuickPageIndicator)
public:
- QQuickPageIndicatorPrivate() : count(0), currentIndex(0),
- interactive(false), delegate(nullptr), pressedItem(nullptr)
+ QQuickPageIndicatorPrivate()
+ : count(0),
+ currentIndex(0),
+ interactive(false),
+ delegate(nullptr),
+ pressedItem(nullptr)
{
}
@@ -166,8 +170,8 @@ void QQuickPageIndicatorPrivate::itemChildAdded(QQuickItem *, QQuickItem *child)
setContextProperty(child, QStringLiteral("pressed"), false);
}
-QQuickPageIndicator::QQuickPageIndicator(QQuickItem *parent) :
- QQuickControl(*(new QQuickPageIndicatorPrivate), parent)
+QQuickPageIndicator::QQuickPageIndicator(QQuickItem *parent)
+ : QQuickControl(*(new QQuickPageIndicatorPrivate), parent)
{
}
@@ -320,7 +324,7 @@ void QQuickPageIndicator::mouseUngrabEvent()
d->updatePressed(false);
}
-#ifndef QT_NO_ACCESSIBILITY
+#if QT_CONFIG(accessibility)
QAccessible::Role QQuickPageIndicator::accessibleRole() const
{
return QAccessible::Indicator;