18 import Ubuntu.Components 0.1
19 import
"../Components"
24 readonly
property double collapseLimit: units.gu(35)
26 uncollapsedHeight: cardVerticalJournal.implicitHeight
27 collapsedHeight: Math.min(collapseLimit, cardVerticalJournal.implicitHeight)
28 expandable: uncollapsedHeight > collapseLimit
34 readonly
property double minHeight: root.model.count >= 1 ? cardVerticalJournal.rowSpacing + 1 : 0
35 height: filtered ? Math.max(collapsedHeight, minHeight) : uncollapsedHeight
40 animation: UbuntuNumberAnimation {
43 heightBehaviour.enabled =
false
49 function setFilter(filter, animate) {
50 heightBehaviour.enabled = animate;
55 id: cardVerticalJournal
60 rowSpacing: minimumColumnSpacing
61 columnWidth: cardTool.cardWidth
63 displayMarginBeginning: root.displayMarginBeginning
64 displayMarginEnd: root.displayMarginEnd
68 sourceComponent: cardTool.cardComponent
69 width: cardTool.cardWidth
71 item.objectName =
"delegate" + index;
72 item.fixedArtShapeSize = Qt.binding(
function() {
return cardTool.artShapeSize; });
73 item.fixedHeaderHeight = Qt.binding(
function() {
return cardTool.headerHeight; });
74 item.cardData = Qt.binding(
function() {
return model; });
75 item.template = Qt.binding(
function() {
return cardTool.template; });
76 item.components = Qt.binding(
function() {
return cardTool.components; });
77 item.headerAlignment = Qt.binding(
function() {
return cardTool.headerAlignment; });
78 item.scopeStyle = root.scopeStyle;
82 onClicked: root.clicked(index, result)
83 onPressAndHold: root.pressAndHold(index)
A responsive wrapper around VerticalJournal.