on 3bb2d99 help sign in
unity8/tests/mocks/Unity/Indicators/IndicatorsModel.qml
65 lines 2.6 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 "position": 0,
32 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget1.qml",
33 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page1.qml",
34 "indicatorProperties": ""
35 });
37 append({ "identifier": "indicator-fake2",
38 "position": 1,
39 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget2.qml",
40 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page2.qml",
41 "indicatorProperties": ""
42 });
44 append({ "identifier": "indicator-fake3",
45 "position": 2,
46 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget3.qml",
47 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page3.qml",
48 "indicatorProperties": ""
49 });
51 append({ "identifier": "indicator-fake4",
52 "position": 3,
53 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget4.qml",
54 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page4.qml",
55 "indicatorProperties": ""
56 });
58 append({ "identifier": "indicator-fake5",
59 "position": 4,
60 "widgetSource": "qrc:/tests/indciators/qml/fake_menu_widget5.qml",
61 "pageSource": "qrc:/tests/indciators/qml/fake_menu_page5.qml",
62 "indicatorProperties": ""
63 });
64 }