on xenial help sign in
reorg++
d31e7c6Albert Astals
qml/Components/FilterGrid.qml+11−11
@@ -62,6 +62,17 @@ Item {
62 readonly property alias currentItem: iconTileGrid.currentItem
62 readonly property alias currentItem: iconTileGrid.currentItem
63 readonly property alias filtered: d.filter
63 readonly property alias filtered: d.filter
64
64
65+ QtObject {
66+ id: d
67+ // We do have filter and collapsed properties because we need to decouple
68+ // the real filtering with the animation since the closing animation
69+ // i.e. setFilter(false. true) we still need to not be filtering until
70+ // the animation finishes otherwise we hide the items when the animation
71+ // is still running
72+ property bool filter: true
73+ property bool collapsed: true
74+ }
75+
65 height: d.collapsed ? root.collapsedHeight : root.uncollapsedHeight
76 height: d.collapsed ? root.collapsedHeight : root.uncollapsedHeight
66 clip: filterAnimation.running
77 clip: filterAnimation.running
67
78
@@ -84,17 +95,6 @@ Item {
84 }
95 }
85 }
96 }
86
97
87− QtObject {
88− id: d
89− // We do have filter and collapsed properties because we need to decouple
90− // the real filtering with the animation since the closing animation
91− // i.e. setFilter(false. true) we still need to not be filtering until
92− // the animation finishes otherwise we hide the items when the animation
93− // is still running
94− property bool filter: true
95− property bool collapsed: true
96− }
97−
98 function setFilter(filter, animate) {
98 function setFilter(filter, animate) {
99 heightBehaviour.enabled = animate;
99 heightBehaviour.enabled = animate;
100 d.collapsed = filter;
100 d.collapsed = filter;