mirror of
https://github.com/KDE/kasts.git
synced 2025-01-06 13:37:00 +01:00
Add Accessibility information to ListDelegates
This commit is contained in:
parent
cce0afd3a0
commit
f1961abe4c
@ -25,6 +25,12 @@ Controls.ItemDelegate {
|
|||||||
implicitWidth: cardSize + 2 * cardMargin
|
implicitWidth: cardSize + 2 * cardMargin
|
||||||
implicitHeight: cardSize + 2 * cardMargin
|
implicitHeight: cardSize + 2 * cardMargin
|
||||||
|
|
||||||
|
Accessible.role: Accessible.Button
|
||||||
|
Accessible.name: feed.name
|
||||||
|
Accessible.onPressAction: {
|
||||||
|
feedDelegate.click()
|
||||||
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
lastFeed = feed.url
|
lastFeed = feed.url
|
||||||
pageStack.push("qrc:/EntryListPage.qml", {"feed": feed})
|
pageStack.push("qrc:/EntryListPage.qml", {"feed": feed})
|
||||||
|
@ -20,6 +20,12 @@ Kirigami.SwipeListItem {
|
|||||||
property bool isDownloads: false
|
property bool isDownloads: false
|
||||||
property var listView: ""
|
property var listView: ""
|
||||||
|
|
||||||
|
Accessible.role: Accessible.Button
|
||||||
|
Accessible.name: entry.title
|
||||||
|
Accessible.onPressAction: {
|
||||||
|
listItem.click()
|
||||||
|
}
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
Loading…
Reference in New Issue
Block a user