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 Unity.Indicators 0.1 as Indicators
22 property var indicatorData : undefined
27 identifier: "indicator-fake1";
31 widgetSource: "qrc:/tests/indciators/qml/fake_menu_widget1.qml";
32 pageSource: "qrc:/tests/indciators/qml/fake_menu_page1.qml";
33 indicatorProperties: "";
37 identifier: "indicator-fake2";
41 widgetSource: "qrc:/tests/indciators/qml/fake_menu_widget2.qml";
42 pageSource: "qrc:/tests/indciators/qml/fake_menu_page2.qml";
43 indicatorProperties: "";
47 identifier: "indicator-fake3";
51 widgetSource: "qrc:/tests/indciators/qml/fake_menu_widget3.qml";
52 pageSource: "qrc:/tests/indciators/qml/fake_menu_page3.qml";
53 indicatorProperties: "";
57 identifier: "indicator-fake4";
61 widgetSource: "qrc:/tests/indciators/qml/fake_menu_widget4.qml";
62 pageSource: "qrc:/tests/indciators/qml/fake_menu_page4.qml";
63 indicatorProperties: "";
67 identifier: "indicator-fake4";
71 widgetSource: "qrc:/tests/indciators/qml/fake_menu_widget5.qml";
72 pageSource: "qrc:/tests/indciators/qml/fake_menu_page5.qml";
73 indicatorProperties: "";
77 function data(row, role) {
78 if (role == Indicators.IndicatorsModelRole.Identifier) {
79 return get(row).identifier;
81 else if (role == Indicators.IndicatorsModelRole.Priority) {
82 return get(row).priority
84 else if (role == Indicators.IndicatorsModelRole.Title) {
87 else if (role == Indicators.IndicatorsModelRole.Description) {
88 return get(row).description
90 else if (role == Indicators.IndicatorsModelRole.WidgetSource) {
91 return get(row).widgetSource
93 else if (role == Indicators.IndicatorsModelRole.PageSource) {
94 return get(row).pageSource
96 else if (role == Indicators.IndicatorsModelRole.IndicatorProperties) {
97 return get(row).indicatorProperties
99 else if (role == Indicators.IndicatorsModelRole.IsValid) {
100 return get(row).isValid
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