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 {
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
spacing: 3
property int indexDragged
@ -307,8 +311,12 @@ Item {
}
Controls.ScrollBar.vertical: Controls.ScrollBar {
anchors.right: serviceItemList.right
anchors.rightMargin: 0
id: serviceListScrollBar
parent: serviceItemList.parent
anchors.right: background.right
anchors.left: serviceItemList.right
anchors.top: serviceItemList.top
anchors.bottom: serviceItemList.bottom
active: hovered || pressed
}