putting ServiceList scrollbar outside listview

This commit is contained in:
Chris Cochrun 2022-10-23 06:34:36 -05:00
parent b9a129ecd2
commit e60fcb8f56

View file

@ -87,7 +87,11 @@ Item {
ListView { ListView {
id: serviceItemList id: serviceItemList
anchors.fill: parent anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
width: serviceListScrollBar.visible ?
parent.width - serviceListScrollBar.width : parent.width
clip: true clip: true
spacing: 3 spacing: 3
property int indexDragged property int indexDragged
@ -307,8 +311,12 @@ Item {
} }
Controls.ScrollBar.vertical: Controls.ScrollBar { Controls.ScrollBar.vertical: Controls.ScrollBar {
anchors.right: serviceItemList.right id: serviceListScrollBar
anchors.rightMargin: 0 parent: serviceItemList.parent
anchors.right: background.right
anchors.left: serviceItemList.right
anchors.top: serviceItemList.top
anchors.bottom: serviceItemList.bottom
active: hovered || pressed active: hovered || pressed
} }