@@ -142,21 +142,6 @@ FocusScope {
142142 readonly property string category: categoryId
143143 readonly property var item: rendererLoader.item
144144
145− Image {
146− id: bottomGradient
147− // FIXME Should not rely on count field of model, SortfilterProxyModel in this case.
148− visible: index !== categoryView.model.count - 1
149− anchors {
150− bottom: parent.bottom
151− left: parent.left
152− right: parent.right
153− }
154− fillMode: Image.Stretch
155− verticalAlignment: Image.AlignBottom
156− source: "graphics/dash_divider_top_darkgrad.png"
157− z: -1
158− }
159−
160145 Loader {
161146 id: rendererLoader
162147 anchors {
@@ -168,6 +153,9 @@ FocusScope {
168153 source: getRenderer(model.renderer, results)
169154
170155 onLoaded: {
156+ item.firstItem = Qt.binding(function() { return index === 0 });
157+ // FIXME Should not rely on count field of model, SortfilterProxyModel in this case.
158+ item.lastItem = Qt.binding(function() { return index === categoryView.model.count - 1 });
171159 if (item.enableHeightBehavior !== undefined && item.enableHeightBehaviorOnNextCreation !== undefined) {
172160 item.enableHeightBehavior = scopeView.enableHeightBehaviorOnNextCreation;
173161 scopeView.enableHeightBehaviorOnNextCreation = false;
@@ -302,19 +290,6 @@ FocusScope {
302290 else
303291 categoryView.expandedCategoryId = "";
304292 }
305−
306− Image {
307− id: topGradient
308− anchors {
309− top: parent.top
310− left: parent.left
311− right: parent.right
312− }
313− fillMode: Image.Stretch
314− verticalAlignment: Image.AlignTop
315− source: "graphics/dash_divider_top_lightgrad.png"
316− z: -1
317− }
318293 }
319294 pageHeader: Item {
320295 implicitHeight: scopeView.tabBarHeight