aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickscrollindicator.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-10-20 12:41:55 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-10-21 15:33:51 +0000
commitbc546e14688c7056ac36b6f478fde852b5afaf46 (patch)
tree75cf4ed7146a362b11a9531d5314f03d738a3a96 /src/templates/qquickscrollindicator.cpp
parent8e1df766cf9e74661b50de4f4ed489af5b4edfc8 (diff)
QQuickControl: dynamically create a11y attached object
Using QAccessible::ActivationObserver approach. Change-Id: Ib99c1f9b7b0c37a3e8a4747db265c9df77acc1f8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickscrollindicator.cpp')
-rw-r--r--src/templates/qquickscrollindicator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/templates/qquickscrollindicator.cpp b/src/templates/qquickscrollindicator.cpp
index 869e784c..d8bc8d06 100644
--- a/src/templates/qquickscrollindicator.cpp
+++ b/src/templates/qquickscrollindicator.cpp
@@ -80,7 +80,10 @@ class QQuickScrollIndicatorPrivate : public QQuickControlPrivate
{
public:
QQuickScrollIndicatorPrivate() : size(0), position(0),
- active(false), orientation(Qt::Vertical), indicator(Q_NULLPTR) { }
+ active(false), orientation(Qt::Vertical), indicator(Q_NULLPTR)
+ {
+ m_accessibleRole = 0x00000027; //QAccessible::Indicator
+ }
qreal size;
qreal position;
@@ -92,7 +95,6 @@ public:
QQuickScrollIndicator::QQuickScrollIndicator(QQuickItem *parent) :
QQuickControl(*(new QQuickScrollIndicatorPrivate), parent)
{
- setAccessibleRole(0x00000027); //QAccessible::Indicator
}
QQuickScrollIndicatorAttached *QQuickScrollIndicator::qmlAttachedProperties(QObject *object)