on 2edc3e8 help sign in
unity8/tests/mocks/Unity/Indicators/IndicatorsModel.qml
75 lines 3.0 kB history raw
1/*
2 * Copyright (C) 2013 Canonical, Ltd.
3 *
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.
7 *
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.
12 *
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/>.
15 */
17import QtQuick 2.0
18import Unity.Indicators 0.1 as Indicators
20ListModel {
22 property var indicatorData : undefined
24 function load() {}
26 // Need to do this dynamically.
27 // Apparently ListModels dont order roles visually when using ListElement
28 // which throws off the filter for non-visible indicators.
29 Component.onCompleted: {
30 append({ "identifier": "indicator-fake1",
31 "priority": 0,
32 "title": "Menu1",
33 "description": "",
34 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget1.qml",
35 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page1.qml",
36 "indicatorProperties": ""
37 });
39 append({ "identifier": "indicator-fake2",
40 "priority": 1,
41 "title": "Menu2",
42 "description": "",
43 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget2.qml",
44 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page2.qml",
45 "indicatorProperties": ""
46 });
48 append({ "identifier": "indicator-fake3",
49 "priority": 2,
50 "title": "Menu3",
51 "description": "",
52 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget3.qml",
53 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page3.qml",
54 "indicatorProperties": ""
55 });
57 append({ "identifier": "indicator-fake4",
58 "priority": 3,
59 "title": "Menu4",
60 "description": "",
61 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget4.qml",
62 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page4.qml",
63 "indicatorProperties": ""
64 });
66 append({ "identifier": "indicator-fake5",
67 "priority": 4,
68 "title": "Menu5",
69 "description": "",
70 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget5.qml",
71 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page5.qml",
72 "indicatorProperties": ""
73 });
74 }