2import ListViewWithPageHeader 0.1
11 if (event.key == Qt.Key_B) {
12 listView.positionAtBeginning()
13 } else if (event.key == Qt.Key_1) {
14 animalsModel.setProperty(0, "size", 400);
15 } else if (event.key == Qt.Key_2) {
16 animalsModel.setProperty(1, "size", 400);
17 } else if (event.key == Qt.Key_3) {
18 animalsModel.setProperty(1, "size", 10);
19 } else if (event.key == Qt.Key_H) {
20 listView.headerItem.height = 100
21 } else if (event.key == Qt.Key_D) {
22 listView.delegate = otherRect
23 } else if (event.key == Qt.Key_F) {
24 listView.header = null
32 function insertItem(index, size) {
33 insert(index, { size: size });
36 function removeItems(index, count) {
40 function moveItems(indexFrom, indexTo, count) {
41 move(indexFrom, indexTo, count);
44 ListElement { size: 150 }
45 ListElement { size: 200 }
46 ListElement { size: 350 }
47 ListElement { size: 350 }
48 ListElement { size: 350 }
49 ListElement { size: 350 }
57 color: index % 2 == 0 ? "yellow" : "purple"
61 ListViewWithPageHeader {
64 anchors.top: parent.top
65 anchors.bottom: parent.bottom
68 property bool timerDone: false
69 width: parent.width - 20
71 color: index % 2 == 0 ? "red" : "blue"
72 height: timerDone ? size : 350
83 Component.onCompleted: {
88 pageHeader: Rectangle {
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list