@@ -159,9 +159,10 @@ FocusScope {
159 scopeView.enableHeightBehaviorOnNextCreation = false;
159 scopeView.enableHeightBehaviorOnNextCreation = false;
161 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
161 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
162− // TODO: the running apps grid doesn't support standard scope results model yet
162+ // TODO: this is still a kludge :D Ideally add some kind of hook so that we
163+ // can do this from DashApps.qml or think a better way that needs no special casing
163− item.firstModel = Qt.binding(function() { return results.firstModel })
164+ item.firstModel = Qt.binding(function() { return mainStageApplicationsModel })
164− item.secondModel = Qt.binding(function() { return results.secondModel })
165+ item.secondModel = Qt.binding(function() { return sideStageApplicationModel })
165 item.canEnableTerminationMode = Qt.binding(function() { return scopeView.isCurrent })
166 item.canEnableTerminationMode = Qt.binding(function() { return scopeView.isCurrent })
167 item.model = Qt.binding(function() { return results })
168 item.model = Qt.binding(function() { return results })
@@ -318,6 +319,10 @@ FocusScope {
318 function getRenderer(template, results) {
319 function getRenderer(template, results) {
319 var layout = template["category-layout"];
320 var layout = template["category-layout"];
322+ if (layout == "running-apps") {
323+ return "Apps/RunningApplicationsGrid.qml";
321 if (layout === "carousel") {
326 if (layout === "carousel") {
322 // TODO: Selectively disable carousel, 4 is fixed for now, should change depending on form factor
327 // TODO: Selectively disable carousel, 4 is fixed for now, should change depending on form factor
323 if (results.count <= 4) layout = "grid";
328 if (results.count <= 4) layout = "grid";