@@ -19,13 +19,14 @@ import Unity 0.1
20import "../../../../Dash"
20import "../../../../Dash"
22−ScopeView {
22+GenericScopeView {
23 id: fakeScopeView
23 id: fakeScopeView
25 property alias backColor : back.color
25 property alias backColor : back.color
27 onEndReached: {
27 onEndReached: {
28− if (shell != undefined && shell.scopeStatus != undefined) {
28+ if (scope != undefined && shell != undefined && shell.scopeStatus != undefined) {
29+ console.log("scope", scope)
29 shell.scopeStatus[scope.id].endReached++;
30 shell.scopeStatus[scope.id].endReached++;
@@ -44,71 +45,6 @@ ScopeView {
45 anchors.fill: parent
46 anchors.fill: parent
46 color: "grey"
47 color: "grey"
51− var hex1=new Array("4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F")
52− var bg="#"+hex1[Math.floor(Math.random()*hex1.length)]+
53− hex1[Math.floor(Math.random()*hex1.length)]+
54− hex1[Math.floor(Math.random()*hex1.length)]+
55− hex1[Math.floor(Math.random()*hex1.length)]+
56− hex1[Math.floor(Math.random()*hex1.length)]+
57− hex1[Math.floor(Math.random()*hex1.length)]
65− model: scope ? scope.categories : null
66− orientation: ListView.Vertical
70− width: listView.width
71− height: childrenRect.height
74− width: listView.width
80− font.family: "Ubuntu"
81− font.weight: Font.Bold
83− anchors.horizontalCenter: parent.horizontalCenter
89− cellWidth: units.gu(10); cellHeight: units.gu(10)
90− height: childrenRect.height
91− width: listView.width
94− delegate: Component {
97− width: resultsGrid.cellWidth; height: resultsGrid.cellHeight
99− anchors.verticalCenter: parent.verticalCenter
100− anchors.horizontalCenter: parent.horizontalCenter
105− anchors.horizontalCenter: parent.horizontalCenter
107− Text { text: title; anchors.horizontalCenter: parent.horizontalCenter }