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
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2022-08-31 07:59:05 +00:00
|
|
|
import QtQuick
|
2023-06-29 10:51:23 +00:00
|
|
|
import "components"
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
Rectangle {
|
2012-03-05 05:02:09 +00:00
|
|
|
width: 320; height: 480
|
2011-04-27 10:05:43 +00:00
|
|
|
color: "#464646"
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: list
|
|
|
|
|
|
|
|
ListElement {
|
2012-03-05 05:02:09 +00:00
|
|
|
name: "Panel One"
|
2014-01-15 21:01:15 +00:00
|
|
|
notes: [
|
2012-03-05 05:02:09 +00:00
|
|
|
ListElement { noteText: "Tap to edit" },
|
|
|
|
ListElement { noteText: "Drag to move" },
|
|
|
|
ListElement { noteText: "Flick to scroll" }
|
2011-04-27 10:05:43 +00:00
|
|
|
]
|
|
|
|
}
|
2014-01-15 21:01:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
ListElement {
|
2012-03-05 05:02:09 +00:00
|
|
|
name: "Panel Two"
|
2011-04-27 10:05:43 +00:00
|
|
|
notes: [
|
2012-03-05 05:02:09 +00:00
|
|
|
ListElement { noteText: "Note One" },
|
|
|
|
ListElement { noteText: "Note Two" }
|
2011-04-27 10:05:43 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
ListElement {
|
2012-03-05 05:02:09 +00:00
|
|
|
name: "Panel Three"
|
2011-04-27 10:05:43 +00:00
|
|
|
notes: [
|
2012-03-05 05:02:09 +00:00
|
|
|
ListElement { noteText: "Note Three" }
|
2011-04-27 10:05:43 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ListView {
|
|
|
|
id: flickable
|
|
|
|
|
|
|
|
anchors.fill: parent
|
|
|
|
focus: true
|
|
|
|
highlightRangeMode: ListView.StrictlyEnforceRange
|
|
|
|
orientation: ListView.Horizontal
|
|
|
|
snapMode: ListView.SnapOneItem
|
|
|
|
model: list
|
2023-06-29 10:51:23 +00:00
|
|
|
delegate: CorkPanel { objectName: name }
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
}
|
2023-06-29 10:51:23 +00:00
|
|
|
|