Unity 8
DashRenderer.qml
1 /*
2  * Copyright (C) 2013-2015 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  */
16 
17 import QtQuick 2.4
18 
19 Item {
20  property real collapsedHeight
21 
22  property real expandedHeight
23 
24  property int collapsedItemCount: -1
25 
26  property int cacheBuffer: 0
27 
28  property int displayMarginBeginning: 0
29 
30  property int displayMarginEnd: 0
31 
32  property real originY: 0
33 
34  property bool growsVertically: true
35 
36  // If growsVertically the width of the item inside the renderer
37  property real innerWidth: 0
38 
39  // The model to renderer
40  property var model
41 
42  /// CardTool component.
43  property var cardTool: null
44 
45  /// ScopeStyle component.
46  property var scopeStyle: null
47 
48  /// Emitted when the user clicked on an item
49  /// @param index is the index of the clicked item
50  /// @param result result model of the clicked item, used for activation
51  /// @param item item that has been clicked
52  /// @param itemModel model of the item
53  signal clicked(int index, var result, var item, var itemModel)
54 
55  /// Emitted when the user pressed and held on an item
56  /// @param index is the index of the held item
57  /// @param result result model of the clicked item, used for activation
58  /// @param itemModel model of the item
59  signal pressAndHold(int index, var result, var itemModel)
60 }