From 6644897dc61f4a15141534c893fd08b12df89bbe Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Thu, 2 Jan 2014 18:47:09 +0100 Subject: Make Label accessible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If364332017669732fa429efe90c26000b01b0580 Reviewed-by: Jan Arve Sæther --- examples/quick/controls/gallery/content/ChildWindow.qml | 6 +++--- 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 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 } -- cgit v1.2.3