Commit d08ab4e9 authored by Chupligin Sergey's avatar Chupligin Sergey

[ListView] add decorator prototype

parent 34e42225
...@@ -8,6 +8,8 @@ ListView { ...@@ -8,6 +8,8 @@ ListView {
signal hideAllActions(int hideIndex) signal hideAllActions(int hideIndex)
property bool showDecorator: false
section.criteria: ViewSection.FullString section.criteria: ViewSection.FullString
section.delegate: Component{ section.delegate: Component{
id: sectionHeading id: sectionHeading
...@@ -63,5 +65,22 @@ ListView { ...@@ -63,5 +65,22 @@ ListView {
} }
} }
Rectangle{
id: scrollerDecorator
visible: listView.showDecorator
color: "#0091e5"
width: 5
height: listView.height*listView.height/listView.contentHeight
y: (listView.height-scrollerDecorator.height)*listView.contentY/listView.height
anchors{
right: listView.right
rightMargin: 4
}
}
} }
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