@@ -60,7 +60,7 @@ Item {
60 readonly property alias pressDelay: iconTileGrid.pressDelay
60 readonly property alias pressDelay: iconTileGrid.pressDelay
61 property alias highlightIndex: iconTileGrid.highlightIndex
61 property alias highlightIndex: iconTileGrid.highlightIndex
62 readonly property alias currentItem: iconTileGrid.currentItem
62 readonly property alias currentItem: iconTileGrid.currentItem
63− readonly property alias filtered: limitModel.filter
63+ readonly property alias filtered: d.filter
65 height: d.collapsed ? root.collapsedHeight : root.uncollapsedHeight
65 height: d.collapsed ? root.collapsedHeight : root.uncollapsedHeight
66 clip: filterAnimation.running
66 clip: filterAnimation.running
@@ -77,7 +77,7 @@ Item {
77 easing.type: Easing.InOutQuad
77 easing.type: Easing.InOutQuad
78 onRunningChanged: {
78 onRunningChanged: {
79 if (!running) {
79 if (!running) {
80− limitModel.filter = d.collapsed;
80+ d.filter = d.collapsed;
82 heightBehaviour.enabled = false;
82 heightBehaviour.enabled = false;
@@ -86,6 +86,12 @@ Item {
87 QtObject {
87 QtObject {
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
94+ property bool filter: true
89 property bool collapsed: true
95 property bool collapsed: true
@@ -93,7 +99,7 @@ Item {
93 heightBehaviour.enabled = animate;
99 heightBehaviour.enabled = animate;
94 d.collapsed = filter;
100 d.collapsed = filter;
95 if (!animate || !filter) {
101 if (!animate || !filter) {
96− limitModel.filter = filter;
102+ d.filter = filter;
@@ -112,14 +118,8 @@ Item {
113 model: LimitProxyModel {
119 model: LimitProxyModel {
114 id: limitModel
120 id: limitModel
115− // We do have filter and collapsed propertis because we need to decouple
116− // the real filtering with the animation since the closing animation
117− // i.e. setFilter(false. true) we still need to not be filtering until
118− // the animation finishes otherwise we hide the items when the animation
120− property bool filter: true
121 model: root.model
121 model: root.model
122− limit: filter ? rowsWhenCollapsed * iconTileGrid.columns : -1
122+ limit: d.filter ? rowsWhenCollapsed * iconTileGrid.columns : -1