@@ -117,13 +117,8 @@ ScopeView {
117 delegate: Base {
117 delegate: Base {
118 id: container
118 id: container
119 highlightWhenPressed: false
119 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)
127 anchors {
122 anchors {
128 top: parent.top
123 top: parent.top
129 left: parent.left
124 left: parent.left
@@ -143,24 +138,28 @@ ScopeView {
144 item.model = Qt.binding(function() { return categoryModels[modelName]; });
139 item.model = Qt.binding(function() { return categoryModels[modelName]; });
145 item.clicked.connect(activateApplication);
140 item.clicked.connect(activateApplication);
145+ ListView.onRemove: SequentialAnimation {
147+ target: container; property: "ListView.delayRemove"; value: true
150+ target: container; property: "height"; to: 0;
151+ duration: 250; easing.type: Easing.InOutQuad
154+ target: container; property: "ListView.delayRemove"; value: false
152 sectionProperty: "category"
159 sectionProperty: "category"
153 sectionDelegate: Header {
160 sectionDelegate: Header {
154 width: categoryView.width
161 width: categoryView.width
155 text: categoryListModel.getCategory(section)
162 text: categoryListModel.getCategory(section)
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);
165 pageHeader: PageHeader {
164 pageHeader: PageHeader {
166 id: pageHeader
165 id: pageHeader