on xenial help sign in
Use mockmusicmaster / mockvideosmaster scopes.
commit1425cd0b4bc0485fa68f10fe83611491ed8f011d authorPawel Stolowski <pawel.stolowski@canonical.com> dateTue 11 Jun 2013, 18:14 (13 years ago) parent4cd62a3
2 files changed+10−10
Dash/DashContent.qml+2−2 Dash/DashHome.qml+8−8
Dash/DashContent.qml+2−2
@@ -79,10 +79,10 @@ Item {
7979 }
8080 }
8181
82− property var lensDelegateMapping: {"mockmusic.scope": "DashMusic.qml",
82+ property var lensDelegateMapping: {"mockmusicmaster.scope": "DashMusic.qml",
8383 "applications.scope": "DashApps.qml",
8484 "home.scope": "DashHome.qml",
85− "mockvideos.scope": "DashVideos.qml",
85+ "mockvideosmaster.scope": "DashVideos.qml",
8686 }
8787 property string genericLens: "GenericLensView.qml"
8888
Dash/DashHome.qml+8−8
@@ -82,24 +82,24 @@ LensView {
8282 }
8383
8484 Component.onCompleted: {
85− var scope = dashContent.scopes.get("mockmusic.scope")
85+ var scope = dashContent.scopes.get("mockmusicmaster.scope")
8686 if (scope) {
87− musicFilter.model = dashContent.scopes.get("mockmusic.scope").results
87+ musicFilter.model = dashContent.scopes.get("mockmusicmaster.scope").results
8888 }
89− scope = dashContent.scopes.get("mockvideos.scope")
89+ scope = dashContent.scopes.get("mockvideosmaster.scope")
9090 if (scope) {
91− videosFilter.model = dashContent.scopes.get("mockvideos.scope").results
91+ videosFilter.model = dashContent.scopes.get("mockvideosmaster.scope").results
9292 }
9393 }
9494
9595 Connections {
9696 target: dashContent
9797 onLensLoaded: switch (lensId) {
98− case "mockmusic.scope":
99− musicFilter.model = dashContent.scopes.get("mockmusic.scope").results
98+ case "mockmusicmaster.scope":
99+ musicFilter.model = dashContent.scopes.get("mockmusicmaster.scope").results
100100 break;
101− case "mockvideos.scope":
102− videosFilter.model = dashContent.scopes.get("mockvideos.scope").results
101+ case "mockvideosmaster.scope":
102+ videosFilter.model = dashContent.scopes.get("mockvideosmaster.scope").results
103103 break;
104104 }
105105 }