corkboards.qml Example File
touchinteraction/flickable/corkboards.qml
import QtQuick 2.0
import "content"
Rectangle {
width: 320; height: 480
color: "#464646"
ListModel {
id: list
ListElement {
name: "Panel One"
notes: [
ListElement { noteText: "Tap to edit" },
ListElement { noteText: "Drag to move" },
ListElement { noteText: "Flick to scroll" }
]
}
ListElement {
name: "Panel Two"
notes: [
ListElement { noteText: "Note One" },
ListElement { noteText: "Note Two" }
]
}
ListElement {
name: "Panel Three"
notes: [
ListElement { noteText: "Note Three" }
]
}
}
ListView {
id: flickable
anchors.fill: parent
focus: true
highlightRangeMode: ListView.StrictlyEnforceRange
orientation: ListView.Horizontal
snapMode: ListView.SnapOneItem
model: list
delegate: Panel { }
}
}