on xenial help sign in
reorg++
commitd31e7c6683f4c5ca9a97c0f15e1f2e81a656a5b5 authorAlbert Astals <albert.astals@canonical.com> dateWed 16 Apr 2014, 17:58 (13 years ago) parentd57547e
1 file changed+11−11
qml/Components/FilterGrid.qml+11−11
qml/Components/FilterGrid.qml+11−11
@@ -62,6 +62,17 @@ Item {
6262 readonly property alias currentItem: iconTileGrid.currentItem
6363 readonly property alias filtered: d.filter
6464
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+
6576 height: d.collapsed ? root.collapsedHeight : root.uncollapsedHeight
6677 clip: filterAnimation.running
6778
@@ -84,17 +95,6 @@ Item {
8495 }
8596 }
8697
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−
9898 function setFilter(filter, animate) {
9999 heightBehaviour.enabled = animate;
100100 d.collapsed = filter;