Commit c4cc43ac authored by Karel Slaný's avatar Karel Slaný

Using ScrollableListView for attachment lists.

parent 63d548bf
......@@ -143,6 +143,9 @@ Component {
}
ScrollableListView {
id: accountList
delegateHeight: headerHeight * 3
anchors.top: datovkaHeader.bottom
anchors.bottom: parent.bottom
clip: true
......@@ -168,7 +171,7 @@ Component {
delegate: Item {
id: accountItem
width: parent.width
height: headerHeight * 3
height: accountList.delegateHeight
ColumnLayout {
spacing: 0
width: parent.width
......
......@@ -253,8 +253,11 @@ Component {
color: datovkaPalette.dark
}
}
ListView {
ScrollableListView {
id: attachmentList
delegateHeight: headerHeight
anchors.top: attachmentLabel.bottom
anchors.bottom: parent.bottom
clip: true
......@@ -271,7 +274,7 @@ Component {
delegate: Rectangle {
id: attachmentItem
width: parent.width
height: headerHeight
height: attachmentList.delegateHeight
color: datovkaPalette.base
Image {
id: imageAttachment
......@@ -355,6 +358,8 @@ Component {
Accessible.role: Accessible.Button
Accessible.name: qsTr("Open attachment '%1'.").arg(rFileName)
Accessible.onScrollDownAction: attachmentList.scrollDown()
Accessible.onScrollUpAction: attachmentList.scrollUp()
Accessible.onPressAction: {
handleClick()
}
......
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