on xenial help sign in
Access the proper template variable
3bde05bAlbert Astals
qml/Dash/CardFilterGrid.qml+1−1
@@ -24,7 +24,7 @@ DashFilterGrid {
24 delegateWidth: cardTool.cardWidth
24 delegateWidth: cardTool.cardWidth
25 delegateHeight: cardTool.cardHeight
25 delegateHeight: cardTool.cardHeight
26 verticalSpacing: units.gu(1)
26 verticalSpacing: units.gu(1)
27− collapsedRowCount: Math.min(2, template && template["collapsed-rows"] || 2)
27+ collapsedRowCount: Math.min(2, cardTool && cardTool.template && template["collapsed-rows"] || 2)
28
28
29 delegate: Item {
29 delegate: Item {
30 width: genericFilterGrid.cellWidth
30 width: genericFilterGrid.cellWidth
qml/Dash/DashRenderer.qml+1−1
@@ -53,7 +53,7 @@ Item {
53 /*!
53 /*!
54 \brief CardTool component.
54 \brief CardTool component.
55 */
55 */
56− property var cardTool
56+ property var cardTool: undefined
57
57
58 /// Emitted when the user clicked on an item
58 /// Emitted when the user clicked on an item
59 /// @param index is the index of the clicked item
59 /// @param index is the index of the clicked item