@@ -143,20 +143,6 @@ FocusScope {
143143 readonly property string category: categoryId
144144 readonly property var item: rendererLoader.item
145145
146− Image {
147− id: bottomGradient
148− visible: index == list.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−
160146 Loader {
161147 id: rendererLoader
162148 anchors {
@@ -168,6 +154,9 @@ FocusScope {
168154 source: getRenderer(model.renderer, model.contentType, model.rendererHint, results)
169155
170156 onLoaded: {
157+ item.firstItem = Qt.binding(function() { return index === 0 });
158+ // FIXME Should not rely on count field of model, SortfilterProxyModel in this case.
159+ item.lastItem = Qt.binding(function() { return index === categoryView.model.count - 1 });
171160 if (item.enableHeightBehavior !== undefined && item.enableHeightBehaviorOnNextCreation !== undefined) {
172161 item.enableHeightBehavior = scopeView.enableHeightBehaviorOnNextCreation;
173162 scopeView.enableHeightBehaviorOnNextCreation = false;
@@ -316,19 +305,6 @@ FocusScope {
316305 else
317306 categoryView.expandedCategoryId = "";
318307 }
319−
320− Image {
321− id: topGradient
322− anchors {
323− top: parent.top
324− left: parent.left
325− right: parent.right
326− }
327− fillMode: Image.Stretch
328− verticalAlignment: Image.AlignTop
329− source: "graphics/dash_divider_top_lightgrad.png"
330− z: -1
331− }
332308 }
333309 pageHeader: Item {
334310 implicitHeight: scopeView.tabBarHeight