1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import QtQuick
- import QtQuick.Templates as T
- T.SwipeView {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
- contentItem: ListView {
- model: control.contentModel
- interactive: control.interactive
- currentIndex: control.currentIndex
- focus: control.focus
- spacing: control.spacing
- orientation: control.orientation
- snapMode: ListView.SnapOneItem
- boundsBehavior: Flickable.StopAtBounds
- highlightRangeMode: ListView.StrictlyEnforceRange
- preferredHighlightBegin: 0
- preferredHighlightEnd: 0
- highlightMoveDuration: 250
- maximumFlickVelocity: 4 * (control.orientation === Qt.Horizontal ? width : height)
- }
- }
|