Commit 35578ced authored by Karel Slaný's avatar Karel Slaný

Using ScrollableListView in file dialogue.

parent 6e424504
......@@ -162,8 +162,11 @@ Dialog {
}
}
} // RowLayout
ListView {
ScrollableListView {
id: fileList
delegateHeight: imgHeightHeader
/* Fill remaining space with the list content. */
Layout.fillHeight: true
Layout.fillWidth: true
......@@ -189,7 +192,7 @@ Dialog {
(index === selectedFileIndex) ? datovkaPalette.highlight : datovkaPalette.window
}
width: fileList.width
height: imgHeightHeader
height: fileList.delegateHeight
RowLayout {
anchors.fill: parent
Text {
......@@ -251,6 +254,8 @@ Dialog {
Accessible.role: Accessible.Button
Accessible.description: accessibleDescriptionText()
Accessible.name: fileName
Accessible.onScrollDownAction: fileList.scrollDown()
Accessible.onScrollUpAction: fileList.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