@@ -142,21 +142,6 @@ FocusScope {
142 readonly property string category: categoryId
142 readonly property string category: categoryId
143 readonly property var item: rendererLoader.item
143 readonly property var item: rendererLoader.item
147− // FIXME Should not rely on count field of model, SortfilterProxyModel in this case.
148− visible: index !== categoryView.model.count - 1
150− bottom: parent.bottom
154− fillMode: Image.Stretch
155− verticalAlignment: Image.AlignBottom
156− source: "graphics/dash_divider_top_darkgrad.png"
161 id: rendererLoader
146 id: rendererLoader
162 anchors {
147 anchors {
@@ -168,6 +153,9 @@ FocusScope {
168 source: getRenderer(model.renderer, results)
153 source: getRenderer(model.renderer, results)
170 onLoaded: {
155 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 });
171 if (item.enableHeightBehavior !== undefined && item.enableHeightBehaviorOnNextCreation !== undefined) {
159 if (item.enableHeightBehavior !== undefined && item.enableHeightBehaviorOnNextCreation !== undefined) {
172 item.enableHeightBehavior = scopeView.enableHeightBehaviorOnNextCreation;
160 item.enableHeightBehavior = scopeView.enableHeightBehaviorOnNextCreation;
173 scopeView.enableHeightBehaviorOnNextCreation = false;
161 scopeView.enableHeightBehaviorOnNextCreation = false;
@@ -302,19 +290,6 @@ FocusScope {
303 categoryView.expandedCategoryId = "";
291 categoryView.expandedCategoryId = "";
313− fillMode: Image.Stretch
314− verticalAlignment: Image.AlignTop
315− source: "graphics/dash_divider_top_lightgrad.png"
319 pageHeader: Item {
294 pageHeader: Item {
320 implicitHeight: scopeView.tabBarHeight
295 implicitHeight: scopeView.tabBarHeight