@@ -117,13 +117,8 @@ ScopeView {
117117 delegate: Base {
118118 id: container
119119 highlightWhenPressed: false
120− property var loader: loader
121− // Needed because of the GridView.onRemove anim in Tile.qml
122− // TODO see how can we do away without the clip (i.e. not run the animation if we are collapsing)
123− clip: true
124120
125121 Loader {
126− id: loader
127122 anchors {
128123 top: parent.top
129124 left: parent.left
@@ -143,24 +138,28 @@ ScopeView {
143138
144139 item.model = Qt.binding(function() { return categoryModels[modelName]; });
145140 item.clicked.connect(activateApplication);
146−
147141 }
148142 }
149143 }
144+
145+ ListView.onRemove: SequentialAnimation {
146+ PropertyAction {
147+ target: container; property: "ListView.delayRemove"; value: true
148+ }
149+ NumberAnimation {
150+ target: container; property: "height"; to: 0;
151+ duration: 250; easing.type: Easing.InOutQuad
152+ }
153+ PropertyAction {
154+ target: container; property: "ListView.delayRemove"; value: false
155+ }
156+ }
150157 }
151158
152159 sectionProperty: "category"
153160 sectionDelegate: Header {
154161 width: categoryView.width
155162 text: categoryListModel.getCategory(section)
156− onClicked: {
157− var obj = categoryView.item(delegateIndex)
158− if (obj && obj.loader.item.expandable) {
159− obj.loader.item.filter = !obj.loader.item.filter
160− if (!obj.loader.item.filter)
161− categoryView.maximizeVisibleArea(delegateIndex);
162− }
163− }
164163 }
165164 pageHeader: PageHeader {
166165 id: pageHeader