making scrolling and scrollbar work on presentationList

This commit is contained in:
Chris Cochrun 2023-01-22 14:37:03 -06:00
parent 97430e38a6
commit f888c897b1

View file

@ -28,7 +28,7 @@ FocusScope {
ColumnLayout { ColumnLayout {
id: mainGrid id: mainGrid
anchors.fill: parent anchors.fill: parent
anchors.bottomMargin: Kirigami.Units.largeSpacing * 20 anchors.bottomMargin: Kirigami.Units.largeSpacing * 21
/* columns: 3 */ /* columns: 3 */
/* rowSpacing: 5 */ /* rowSpacing: 5 */
/* columnSpacing: 0 */ /* columnSpacing: 0 */
@ -181,8 +181,8 @@ FocusScope {
property int activeX property int activeX
id: previewSlidesList id: previewSlidesList
anchors.top: mainGrid.bottom anchors.top: mainGrid.bottom
anchors.bottom: root.bottom - Kirigami.Units.gridUnit
width: parent.width width: parent.width
height: Kirigami.Units.gridUnit * 9
orientation: ListView.Horizontal orientation: ListView.Horizontal
spacing: Kirigami.Units.smallSpacing * 2 spacing: Kirigami.Units.smallSpacing * 2
cacheBuffer: 900 cacheBuffer: 900
@ -197,12 +197,6 @@ FocusScope {
} }
Controls.ScrollBar.horizontal: Controls.ScrollBar { Controls.ScrollBar.horizontal: Controls.ScrollBar {
/* parent: songLibraryList.parent */
/* anchors.right: previewSlidesList.right */
/* anchors.top: previewSlidesList.bottom */
/* anchors.topMargin: Kirigami.Units.smallSpacing */
/* anchors.left: previewSlidesList.right */
/* anchors.top: activeHighlightBar.bottom */
active: hovered || pressed active: hovered || pressed
} }