Commit 6a5a4f0d authored by Karel Slaný's avatar Karel Slaný

Exposed attached file list into accessibility.

parent 3ff61b11
......@@ -464,8 +464,7 @@ Item {
height: listItemHeight
color: datovkaPalette.base
MouseArea {
anchors.fill: parent
onClicked: {
function handleClick() {
// fileId is set and is valid, use files from database
if (rFileId > 0) {
if (files.isZfoFile(rFileName)) {
......@@ -495,6 +494,17 @@ Item {
}
}
}
anchors.fill: parent
Accessible.role: Accessible.Button
Accessible.name: qsTr("Open file '%1'.").arg(rFileName)
Accessible.onPressAction: {
handleClick()
}
onClicked: {
handleClick()
}
}
Image {
id: imageAttachment
......@@ -550,9 +560,19 @@ Item {
color: datovkaPalette.windowText
}
MouseArea {
function handleClick() {
sendMsgAttachmentModel.removeItem(index)
}
anchors.fill: parent
Accessible.role: Accessible.Button
Accessible.name: qsTr("Remove file '%1' from list.").arg(rFileName)
Accessible.onPressAction: {
handleClick()
}
onClicked: {
sendMsgAttachmentModel.removeItem(index)
handleClick()
}
}
} // Rectangle
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment