Adding scrollbar to list view
This commit is contained in:
parent
2fce5db7cf
commit
afae882ba4
1 changed files with 11 additions and 1 deletions
|
@ -23,7 +23,8 @@ Item {
|
|||
property alias currentIndex: listView.currentIndex
|
||||
ListView {
|
||||
id: listView
|
||||
anchors.fill: parent
|
||||
height: parent.height
|
||||
width: parent.width - scrollBar.width
|
||||
model: decorationModel
|
||||
highlight: PlasmaComponents.Highlight {
|
||||
width: listView.width - 10
|
||||
|
@ -82,4 +83,13 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
PlasmaComponents.ScrollBar {
|
||||
id: scrollBar
|
||||
flickableItem: listView
|
||||
anchors {
|
||||
right: parent.right
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue