diff --git a/src/qml/DataGridView.qml b/src/qml/DataGridView.qml --- a/src/qml/DataGridView.qml +++ b/src/qml/DataGridView.qml @@ -37,6 +37,9 @@ focus: true + Accessible.role: Accessible.Pane + Accessible.name: mainTitle + DataModel { id: realModel } diff --git a/src/qml/ElisaMainWindow.qml b/src/qml/ElisaMainWindow.qml --- a/src/qml/ElisaMainWindow.qml +++ b/src/qml/ElisaMainWindow.qml @@ -40,6 +40,9 @@ title: i18n("Elisa") + Accessible.role: Accessible.Application + Accessible.name: title + property var goBackAction: elisa.action("go_back") property var seekAction: elisa.action("Seek") property var scrubAction: elisa.action("Scrub") diff --git a/src/qml/FileBrowserDelegate.qml b/src/qml/FileBrowserDelegate.qml --- a/src/qml/FileBrowserDelegate.qml +++ b/src/qml/FileBrowserDelegate.qml @@ -53,6 +53,9 @@ Keys.onReturnPressed: gridEntry.enqueue(fileUrl) Keys.onEnterPressed: gridEntry.enqueue(fileUrl) + Accessible.role: Accessible.ListItem + Accessible.name: fileName + Rectangle { id: stateIndicator diff --git a/src/qml/FileBrowserView.qml b/src/qml/FileBrowserView.qml --- a/src/qml/FileBrowserView.qml +++ b/src/qml/FileBrowserView.qml @@ -114,6 +114,9 @@ currentIndex: -1 + Accessible.role: Accessible.List + Accessible.name: proxyModel.url + model: proxyModel ScrollHelper { diff --git a/src/qml/GridBrowserDelegate.qml b/src/qml/GridBrowserDelegate.qml --- a/src/qml/GridBrowserDelegate.qml +++ b/src/qml/GridBrowserDelegate.qml @@ -43,6 +43,9 @@ Keys.onReturnPressed: open() Keys.onEnterPressed: open() + Accessible.role: Accessible.ListItem + Accessible.name: mainText + Rectangle { id: stateIndicator @@ -132,6 +135,10 @@ ToolTip.delay: 1000 ToolTip.text: i18nc("Clear play list and add whole container to play list", "Play now, replacing current playlist") + Accessible.role: Accessible.Button + Accessible.name: ToolTip.text + Accessible.description: ToolTip.text + onClicked: replaceAndPlay(databaseId, mainText) Keys.onReturnPressed: replaceAndPlay(databaseId, mainText) Keys.onEnterPressed: replaceAndPlay(databaseId, mainText) @@ -153,6 +160,10 @@ ToolTip.delay: 1000 ToolTip.text: i18nc("Add whole container to play list", "Add to playlist") + Accessible.role: Accessible.Button + Accessible.name: ToolTip.text + Accessible.description: ToolTip.text + onClicked: enqueue(databaseId, mainText) Keys.onReturnPressed: enqueue(databaseId, mainText) Keys.onEnterPressed: enqueue(databaseId, mainText) @@ -173,6 +184,10 @@ ToolTip.delay: 1000 ToolTip.text: i18nc("Open view of the container", "Open") + Accessible.role: Accessible.Button + Accessible.name: ToolTip.text + Accessible.description: ToolTip.text + onClicked: open() width: elisaTheme.delegateToolButtonSize diff --git a/src/qml/GridBrowserView.qml b/src/qml/GridBrowserView.qml --- a/src/qml/GridBrowserView.qml +++ b/src/qml/GridBrowserView.qml @@ -114,6 +114,9 @@ currentIndex: -1 + Accessible.role: Accessible.List + Accessible.name: mainTitle + TextMetrics { id: secondaryLabelSize text: 'example' diff --git a/src/qml/ListBrowserView.qml b/src/qml/ListBrowserView.qml --- a/src/qml/ListBrowserView.qml +++ b/src/qml/ListBrowserView.qml @@ -105,6 +105,10 @@ anchors.topMargin: 20 anchors.fill: parent + Accessible.role: Accessible.List + Accessible.name: mainTitle + Accessible.description: mainTitle + activeFocusOnTab: true keyNavigationEnabled: true diff --git a/src/qml/MediaAlbumTrackDelegate.qml b/src/qml/MediaAlbumTrackDelegate.qml --- a/src/qml/MediaAlbumTrackDelegate.qml +++ b/src/qml/MediaAlbumTrackDelegate.qml @@ -38,6 +38,10 @@ property alias isSelected: mediaTrack.isSelected property alias isAlternateColor: mediaTrack.isAlternateColor + Accessible.role: Accessible.ListItem + Accessible.name: title + Accessible.description: title + ColumnLayout { anchors.fill: parent diff --git a/src/qml/MediaPlayListView.qml b/src/qml/MediaPlayListView.qml --- a/src/qml/MediaPlayListView.qml +++ b/src/qml/MediaPlayListView.qml @@ -35,6 +35,9 @@ id: topItem + Accessible.role: Accessible.Pane + Accessible.name: viewTitleHeight.text + Controls1.Action { id: clearPlayList text: i18nc("Remove all tracks from play list", "Clear Playlist") @@ -223,6 +226,7 @@ Layout.fillWidth: true Layout.fillHeight: true + title: viewTitleHeight.text playListModel: elisa.mediaPlayList focus: true diff --git a/src/qml/MediaTrackDelegate.qml b/src/qml/MediaTrackDelegate.qml --- a/src/qml/MediaTrackDelegate.qml +++ b/src/qml/MediaTrackDelegate.qml @@ -47,6 +47,10 @@ signal enqueue(var databaseId, var name) signal replaceAndPlay(var databaseId, var name) + Accessible.role: Accessible.ListItem + Accessible.name: title + Accessible.description: title + Controls1.Action { id: enqueueAction text: i18nc("Enqueue current track", "Enqueue") diff --git a/src/qml/NavigationActionBar.qml b/src/qml/NavigationActionBar.qml --- a/src/qml/NavigationActionBar.qml +++ b/src/qml/NavigationActionBar.qml @@ -281,6 +281,8 @@ horizontalAlignment: TextInput.AlignLeft + Accessible.role: Accessible.EditableText + placeholderText: i18nc("Placeholder text in the filter text box", "Album name, artist, etc.") Layout.bottomMargin: 0 diff --git a/src/qml/PlayListBasicView.qml b/src/qml/PlayListBasicView.qml --- a/src/qml/PlayListBasicView.qml +++ b/src/qml/PlayListBasicView.qml @@ -25,6 +25,7 @@ id: playListView property alias playListModel: playListModelDelegate.model + property string title signal startPlayback() signal pausePlayback() @@ -36,6 +37,9 @@ currentIndex: -1 + Accessible.role: Accessible.List + Accessible.name: title + section.property: 'albumSection' section.criteria: ViewSection.FullString section.labelPositioning: ViewSection.InlineLabels diff --git a/src/qml/PlayListEntry.qml b/src/qml/PlayListEntry.qml --- a/src/qml/PlayListEntry.qml +++ b/src/qml/PlayListEntry.qml @@ -53,6 +53,9 @@ signal removeFromPlaylist(var trackIndex) signal switchToTrack(var trackIndex) + Accessible.role: Accessible.ListItem + Accessible.name: title + ' ' + album + ' ' + artist + height: elisaTheme.playListDelegateHeight Controls1.Action { diff --git a/src/qml/ViewSelector.qml b/src/qml/ViewSelector.qml --- a/src/qml/ViewSelector.qml +++ b/src/qml/ViewSelector.qml @@ -65,6 +65,8 @@ ListView { id: viewModeView + Accessible.role: Accessible.List + focus: true activeFocusOnTab: true keyNavigationEnabled: true diff --git a/src/qml/ViewSelectorDelegate.qml b/src/qml/ViewSelectorDelegate.qml --- a/src/qml/ViewSelectorDelegate.qml +++ b/src/qml/ViewSelectorDelegate.qml @@ -36,6 +36,10 @@ color: "transparent" } + Accessible.role: Accessible.ListItem + Accessible.description: model.display + Accessible.name: model.display + MouseArea { id: hoverArea