diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-01-02 18:47:09 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-03 12:33:01 +0100 |
commit | 6644897dc61f4a15141534c893fd08b12df89bbe (patch) | |
tree | 38cc7b1111a8f940ec8b5be2c4a5a63da18e86c1 | |
parent | cd8eb15f5e37c843ed8b53f071b8ff11eba6986c (diff) | |
download | qtquickcontrols-6644897dc61f4a15141534c893fd08b12df89bbe.tar.gz |
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.qml | 6 | ||||
-rw-r--r-- | src/controls/Label.qml | 2 |
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 21f2489a..a645e476 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 01f2a162..8a102011 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 } |