aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickscrollbar.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-10-28 15:20:41 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-29 06:55:02 +0000
commit361a9929a7bfc09d1497923a27be5606b9138dd7 (patch)
tree6d844ac2da2720f81ea844526b813f71aa792a2c /src/templates/qquickscrollbar.cpp
parentdac9c3f46650ef69a32f09280f3e78f9bba0f77b (diff)
Added QQuickControl::accessibleRole() and etc
* m_accessibleRole was removed * also applied to QQuickLabel, QQuickTextArea and QQuickTextField Change-Id: I4b487f32cccfba0e16b3dba7e39882e8cd7ea616 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickscrollbar.cpp')
-rw-r--r--src/templates/qquickscrollbar.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/templates/qquickscrollbar.cpp b/src/templates/qquickscrollbar.cpp
index cb3e2766..a2c399c3 100644
--- a/src/templates/qquickscrollbar.cpp
+++ b/src/templates/qquickscrollbar.cpp
@@ -83,7 +83,6 @@ public:
active(false), pressed(false), moving(false),
orientation(Qt::Vertical), handle(Q_NULLPTR)
{
- m_accessibleRole = 0x00000003; // QAccessible::ScrollBar
}
static QQuickScrollBarPrivate *get(QQuickScrollBar *bar)
@@ -298,6 +297,11 @@ void QQuickScrollBar::accessibilityActiveChanged(bool active)
if (active)
setAccessibleProperty("pressed", d->pressed);
}
+
+QAccessible::Role QQuickScrollBar::accessibleRole() const
+{
+ return QAccessible::ScrollBar;
+}
#endif
class QQuickScrollBarAttachedPrivate : public QObjectPrivate, public QQuickItemChangeListener