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
31 filtered: filterGrid.filtered
33 function setFilter(filter, animate) {
34 filterGrid.setFilter(filter, animate)
39 width: genericFilterGrid.width
40 minimumHorizontalSpacing: units.gu(1)
41 delegateWidth: cardTool.cardWidth
42 delegateHeight: cardTool.cardHeight
43 verticalSpacing: genericFilterGrid.verticalSpacing
44 model: genericFilterGrid.model
45 collapsedRowCount: Math.min(2, cardTool && cardTool.template && cardTool.template[
"collapsed-rows"] || 2)
46 delegateCreationBegin: genericFilterGrid.delegateCreationBegin
47 delegateCreationEnd: genericFilterGrid.delegateCreationEnd
49 width: filterGrid.cellWidth
50 height: filterGrid.cellHeight
53 sourceComponent: cardTool.cardComponent
54 anchors.horizontalCenter: parent.horizontalCenter
56 item.objectName =
"delegate" + index;
57 item.width = Qt.binding(
function() {
return cardTool.cardWidth; });
58 item.height = Qt.binding(
function() {
return cardTool.cardHeight; });
59 item.fixedArtShapeSize = Qt.binding(
function() {
return cardTool.artShapeSize; });
60 item.cardData = Qt.binding(
function() {
return model; });
61 item.template = Qt.binding(
function() {
return cardTool.template; });
62 item.components = Qt.binding(
function() {
return cardTool.components; });
63 item.headerAlignment = Qt.binding(
function() {
return cardTool.headerAlignment; });
67 onClicked: genericFilterGrid.clicked(index, item.y)
68 onPressAndHold: genericFilterGrid.pressAndHold(index, item.y)