aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/qquickdial.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-09-21 09:39:49 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-09-21 10:54:41 +0000
commit3ebcf54e63f29d57e189895bdf52f6b5199e827f (patch)
tree6d7b930b7722700cab989e665271f1adc04b3aea /src/imports/controls/qquickdial.cpp
parent2b40d7b8bb85db0d4f15fe77c451af4473f29c32 (diff)
Controls: move Accessible from QML to C++ for Dial
Change-Id: I95604be3b31bc69f7ac3f7ed8ff444833713b67d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/qquickdial.cpp')
-rw-r--r--src/imports/controls/qquickdial.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/qquickdial.cpp b/src/imports/controls/qquickdial.cpp
index 407899d3..c607fba3 100644
--- a/src/imports/controls/qquickdial.cpp
+++ b/src/imports/controls/qquickdial.cpp
@@ -163,6 +163,7 @@ QQuickDial::QQuickDial(QQuickItem *parent) :
QQuickControl(*(new QQuickDialPrivate), parent)
{
setActiveFocusOnTab(true);
+ setAccessibleRole(0x00000031); //QAccessible::Dial
setAcceptedMouseButtons(Qt::LeftButton);
}
@@ -367,6 +368,7 @@ void QQuickDial::setPressed(bool pressed)
Q_D(QQuickDial);
if (d->pressed != pressed) {
d->pressed = pressed;
+ setAccessibleProperty("pressed", pressed);
emit pressedChanged();
}
}