mirror of
https://github.com/KDE/kasts.git
synced 2025-01-04 12:39:36 +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
|
||||
implicitHeight: cardSize + 2 * cardMargin
|
||||
|
||||
Accessible.role: Accessible.Button
|
||||
Accessible.name: feed.name
|
||||
Accessible.onPressAction: {
|
||||
feedDelegate.click()
|
||||
}
|
||||
|
||||
onClicked: {
|
||||
lastFeed = feed.url
|
||||
pageStack.push("qrc:/EntryListPage.qml", {"feed": feed})
|
||||
|
@ -20,6 +20,12 @@ Kirigami.SwipeListItem {
|
||||
property bool isDownloads: false
|
||||
property var listView: ""
|
||||
|
||||
Accessible.role: Accessible.Button
|
||||
Accessible.name: entry.title
|
||||
Accessible.onPressAction: {
|
||||
listItem.click()
|
||||
}
|
||||
|
||||
contentItem: RowLayout {
|
||||
|
||||
Loader {
|
||||
|
Loading…
Reference in New Issue
Block a user