on xenial help sign in
Remove unused properties from DashRenderer
commit95ba078994e1e085d08607142d5103db44ac059c authorAlbert Astals <albert.astals@canonical.com> dateWed 26 Mar 2014, 16:09 (13 years ago) parent05d4a33
2 files changed+1−10
qml/Dash/CardFilterGrid.qml+1−4 qml/Dash/DashRenderer.qml−6
qml/Dash/CardFilterGrid.qml+1−4
@@ -21,10 +21,7 @@ DashRenderer {
2121 id: genericFilterGrid
2222
2323 expandable: filterGrid.expandable
24− collapsedRowCount: Math.min(2, cardTool && cardTool.template && cardTool.template["collapsed-rows"] || 2)
2524 collapsedHeight: filterGrid.collapsedHeight
26− columns: filterGrid.columns
27− rows: filter ? collapsedRowCount : uncollapsedRowCount
2825 margins: filterGrid.margins
2926 uncollapsedHeight: filterGrid.uncollapsedHeight
3027 verticalSpacing: units.gu(1)
@@ -44,7 +41,7 @@ DashRenderer {
4441 verticalSpacing: genericFilterGrid.verticalSpacing
4542 model: genericFilterGrid.model
4643 filter: genericFilterGrid.filter
47− collapsedRowCount: genericFilterGrid.collapsedRowCount
44+ collapsedRowCount: Math.min(2, cardTool && cardTool.template && cardTool.template["collapsed-rows"] || 2)
4845 delegateCreationBegin: genericFilterGrid.delegateCreationBegin
4946 delegateCreationEnd: genericFilterGrid.delegateCreationEnd
5047 delegate: Item {
qml/Dash/DashRenderer.qml−6
@@ -23,14 +23,8 @@ Item {
2323 // In case it can be expanded, should we filter it
2424 property bool filter: true
2525
26− property int collapsedRowCount: 1
27−
2826 property int collapsedHeight: height
2927
30− property int columns: 1
31−
32− property int rows: 1
33−
3428 property int margins: 0
3529
3630 property int uncollapsedHeight: height