on xenial help sign in
Dash: Make assignments bindings
56827d4Albert Astals
Dash/GenericScopeView.qml+4−4
@@ -74,12 +74,12 @@ ScopeView {
74 onLoaded: {
74 onLoaded: {
75 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
75 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
76 // TODO: the running apps grid doesn't support standard scope results model yet
76 // TODO: the running apps grid doesn't support standard scope results model yet
77− item.firstModel = results.firstModel
77+ item.firstModel = Qt.binding(function() { return results.firstModel })
78− item.secondModel = results.secondModel
78+ item.secondModel = Qt.binding(function() { return results.secondModel })
79 } else {
79 } else {
80− item.model = results
80+ item.model = Qt.binding(function() { return results })
81 }
81 }
82− item.objectName = categoryId
82+ item.objectName = Qt.binding(function() { return categoryId })
83 if (item.expandable) {
83 if (item.expandable) {
84 var shouldFilter = index != categoryView.expandedIndex;
84 var shouldFilter = index != categoryView.expandedIndex;
85 if (shouldFilter != item.filter) {
85 if (shouldFilter != item.filter) {