Libplasma

SwipeView.qml
1// SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org>
2// SPDX-License-Identifier: LGPL-2.0-or-later
3
4import QtQuick
5import QtQuick.Templates as T
6import org.kde.kirigami as Kirigami
7
8T.SwipeView {
9 id: control
10 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
11 implicitContentWidth + leftPadding + rightPadding)
12 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
13 implicitContentHeight + topPadding + bottomPadding)
14
15
16 contentItem: ListView {
17 model: control.contentModel
18 interactive: control.interactive
19 currentIndex: control.currentIndex
20 focus: control.focus
21
22 spacing: control.spacing
23 orientation: control.orientation
24 snapMode: ListView.SnapOneItem
25 boundsBehavior: Flickable.StopAtBounds
26
27 highlightRangeMode: ListView.StrictlyEnforceRange
28 preferredHighlightBegin: 0
29 preferredHighlightEnd: 0
30 highlightMoveDuration: Kirigami.Units.longDuration
31 maximumFlickVelocity: 4 * (control.orientation === Qt.Horizontal ? width : height)
32 }
33}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.