2 * Copyright (C) 2013 Canonical, Ltd.
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.
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.
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/>.
20 property int collapsedHeight
22 property int expandedHeight
24 property int collapsedItemCount: -1
26 property int displayMarginBeginning: 0
28 property int displayMarginEnd: 0
30 property real originY: 0
32 // The model to renderer
35 /// CardTool component.
36 property var cardTool: null
38 /// ScopeStyle component.
39 property var scopeStyle: null
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)
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)