move styled list view
This commit is contained in:
parent
69cb49c584
commit
35a24587b4
3 changed files with 31 additions and 4 deletions
22
components/StyledListView.qml
Normal file
22
components/StyledListView.qml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
ListView {
|
||||
id: root
|
||||
|
||||
clip: true
|
||||
maximumFlickVelocity: 3000
|
||||
|
||||
ScrollBar {
|
||||
orientation: root.orientation == ListView.Vertical ? Qt.Vertical : Qt.Horizontal
|
||||
}
|
||||
|
||||
rebound: Transition {
|
||||
NumberAnimation {
|
||||
properties: "x,y"
|
||||
duration: 400
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: [0.2, 0, 0, 1, 1, 1]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue