18 import
"../Components"
23 expandable: filterGrid.expandable
24 collapsedHeight: filterGrid.collapsedHeight
25 margins: filterGrid.margins
26 uncollapsedHeight: filterGrid.uncollapsedHeight
27 originY: filterGrid.originY
28 verticalSpacing: units.gu(1)
29 currentItem: filterGrid.currentItem
30 height: filterGrid.height
32 function startFilterAnimation(filter) {
33 filterGrid.startFilterAnimation(filter)
38 width: genericFilterGrid.width
39 minimumHorizontalSpacing: units.gu(1)
40 delegateWidth: cardTool.cardWidth
41 delegateHeight: cardTool.cardHeight
42 verticalSpacing: genericFilterGrid.verticalSpacing
43 model: genericFilterGrid.model
44 filter: genericFilterGrid.filter
45 collapsedRowCount: Math.min(2, cardTool && cardTool.template && cardTool.template[
"collapsed-rows"] || 2)
46 delegateCreationBegin: genericFilterGrid.delegateCreationBegin
47 delegateCreationEnd: genericFilterGrid.delegateCreationEnd
50 width: filterGrid.cellWidth
51 height: filterGrid.cellHeight
54 width: cardTool.cardWidth
55 height: cardTool.cardHeight
56 fixedHeaderHeight: cardTool.headerHeight
57 anchors.horizontalCenter: parent.horizontalCenter
58 objectName:
"delegate" + index
60 template: cardTool.template
61 components: cardTool.components
63 headerAlignment: cardTool.headerAlignment
65 onClicked: genericFilterGrid.clicked(index, card.y)
66 onPressAndHold: genericFilterGrid.pressAndHold(index, card.y)
71 genericFilterGrid.filter = filter
72 filter = Qt.binding(
function() {
return genericFilterGrid.filter })