34 lines
1.2 KiB
QML
34 lines
1.2 KiB
QML
// Copyright (C) 2017 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
// Qt-Security score:significant reason:default
|
|
|
|
import QtQuick
|
|
import QtQuick.Templates as T
|
|
|
|
T.SwipeView {
|
|
id: control
|
|
|
|
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
|
implicitContentWidth + leftPadding + rightPadding)
|
|
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
|
implicitContentHeight + 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)
|
|
}
|
|
}
|