summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-01-02 18:47:09 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-03 12:33:01 +0100
commit6644897dc61f4a15141534c893fd08b12df89bbe (patch)
tree38cc7b1111a8f940ec8b5be2c4a5a63da18e86c1
parentcd8eb15f5e37c843ed8b53f071b8ff11eba6986c (diff)
Make Label accessible
Change-Id: If364332017669732fa429efe90c26000b01b0580 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
-rw-r--r--examples/quick/controls/gallery/content/ChildWindow.qml6
-rw-r--r--src/controls/Label.qml2
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/quick/controls/gallery/content/ChildWindow.qml b/examples/quick/controls/gallery/content/ChildWindow.qml
index 21f2489a8..a645e4766 100644
--- a/examples/quick/controls/gallery/content/ChildWindow.qml
+++ b/examples/quick/controls/gallery/content/ChildWindow.qml
@@ -59,7 +59,7 @@ Window {
color: syspal.window
anchors.fill: parent
- Text {
+ Label {
id: dimensionsText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
@@ -67,7 +67,7 @@ Window {
horizontalAlignment: Text.AlignHCenter
}
- Text {
+ Label {
id: availableDimensionsText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: dimensionsText.bottom
@@ -75,7 +75,7 @@ Window {
horizontalAlignment: Text.AlignHCenter
}
- Text {
+ Label {
id: closeText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: availableDimensionsText.bottom
diff --git a/src/controls/Label.qml b/src/controls/Label.qml
index 01f2a1629..8a1020111 100644
--- a/src/controls/Label.qml
+++ b/src/controls/Label.qml
@@ -88,4 +88,6 @@ Text {
id: pal
colorGroup: enabled ? SystemPalette.Active : SystemPalette.Disabled
}
+ Accessible.name: text
+ Accessible.role: Accessible.StaticText
}