2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2015-12-14 18:06:53 +00:00
|
|
|
|
2020-03-26 16:01:51 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
2015-12-14 18:06:53 +00:00
|
|
|
|
|
|
|
Pane {
|
|
|
|
id: pane
|
|
|
|
|
|
|
|
SwipeView {
|
|
|
|
id: view
|
|
|
|
currentIndex: 1
|
|
|
|
anchors.fill: parent
|
2025-05-23 08:23:27 +00:00
|
|
|
enabled: !GalleryConfig.disabled
|
2015-12-14 18:06:53 +00:00
|
|
|
|
|
|
|
Repeater {
|
|
|
|
model: 3
|
|
|
|
|
|
|
|
Pane {
|
2023-02-22 08:53:32 +00:00
|
|
|
width: SwipeView.view.width
|
|
|
|
height: SwipeView.view.height
|
2015-12-14 18:06:53 +00:00
|
|
|
|
|
|
|
Column {
|
|
|
|
spacing: 40
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
Label {
|
|
|
|
width: parent.width
|
|
|
|
wrapMode: Label.Wrap
|
2015-12-18 15:32:00 +00:00
|
|
|
horizontalAlignment: Qt.AlignHCenter
|
2023-02-23 13:17:52 +00:00
|
|
|
text: qsTr("SwipeView provides a navigation model that simplifies horizontal paged scrolling. "
|
|
|
|
+ "The page indicator on the bottom shows which is the presently active page.")
|
2015-12-14 18:06:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Image {
|
2016-10-20 09:04:25 +00:00
|
|
|
source: "../images/arrows.png"
|
2015-12-14 18:06:53 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PageIndicator {
|
|
|
|
count: view.count
|
|
|
|
currentIndex: view.currentIndex
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
}
|