on ff2ea35 help sign in
unity8/tests/mocks/Unity/Indicators/IndicatorsModel.qml
60 lines 2.4 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
20Indicators.FakeIndicatorsModel {
22 function load(profile) {
23 unload();
25 append({ "identifier": "indicator-fake1",
26 "position": 0,
27 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget1.qml",
28 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page1.qml",
29 "indicatorProperties": { enabled: true }
30 });
32 append({ "identifier": "indicator-fake2",
33 "position": 1,
34 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget2.qml",
35 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page2.qml",
36 "indicatorProperties": { enabled: true }
37 });
39 append({ "identifier": "indicator-fake3",
40 "position": 2,
41 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget3.qml",
42 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page3.qml",
43 "indicatorProperties": { enabled: true }
44 });
46 append({ "identifier": "indicator-fake4",
47 "position": 3,
48 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget4.qml",
49 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page4.qml",
50 "indicatorProperties": { enabled: true }
51 });
53 append({ "identifier": "indicator-fake5",
54 "position": 4,
55 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget5.qml",
56 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page5.qml",
57 "indicatorProperties": { enabled: true }
58 });
59 }