2 * Copyright (C) 2013 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18import ListViewWithPageHeader 0.1
28 function insertItem(index, size, type) {
29 insert(index, { size: size, type: type });
32 function removeItems(index, count) {
36 function moveItems(indexFrom, indexTo, count) {
37 move(indexFrom, indexTo, count);
40 ListElement { type: "Agressive"; size: 150 }
41 ListElement { type: "Regular"; size: 200 }
42 ListElement { type: "Mild"; size: 350 }
43 ListElement { type: "Bold"; size: 350 }
44 ListElement { type: "Bold"; size: 350 }
45 ListElement { type: "Lazy"; size: 350 }
53 color: index % 2 == 0 ? "yellow" : "purple"
57 ListViewWithPageHeader {
60 anchors.top: parent.top
61 anchors.bottom: parent.bottom
64 property bool timerDone: false
65 width: parent.width - 20
67 color: index % 2 == 0 ? "red" : "blue"
68 height: timerDone ? size : 350
79 Component.onCompleted: {
84 pageHeader: Rectangle {
96 sectionProperty: "type"
97 sectionDelegate: Component {
101 Text { text: section; font.pixelSize: 34 }
102 anchors { left: parent.left; right: parent.right }
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