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