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

Using ScrollableListView for attachment list when creating message.

parent c4cc43ac
......@@ -461,7 +461,7 @@ Item {
Rectangle {
id: attachmentItem
width: parent.width
height: listItemHeight
height: attachmentListSend.delegateHeight
color: datovkaPalette.base
MouseArea {
function handleClick() {
......@@ -510,7 +510,7 @@ Item {
id: imageAttachment
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: listItemHeight * 0.8
sourceSize.height: attachmentListSend.delegateHeight * 0.8
source: rFileIcon
}
Item {
......@@ -568,6 +568,8 @@ Item {
Accessible.role: Accessible.Button
Accessible.name: qsTr("Remove file '%1' from list.").arg(rFileName)
Accessible.onScrollDownAction: attachmentListSend.scrollDown()
Accessible.onScrollUpAction: attachmentListSend.scrollUp()
Accessible.onPressAction: {
handleClick()
}
......@@ -584,8 +586,11 @@ Item {
}
} // Rectangle
} // Component
ListView {
ScrollableListView {
id: attachmentListSend
delegateHeight: listItemHeight
anchors.top: addFile.bottom
anchors.bottom: parent.bottom
clip: true
......
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