~mzanetti/unity8/launcher-follow-unity-api

« back to all changes in this revision

Viewing changes to Dash/DashApps.qml

  • Committer: Michael Zanetti
  • Date: 2013-06-26 09:26:51 UTC
  • mfrom: (22.1.24 unity)
  • Revision ID: michael.zanetti@canonical.com-20130626092651-ku85xmvlt2pjgypx
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import "../Components/ListItems"
22
22
import "Apps"
23
23
 
24
 
LensView {
25
 
    id: lensView
 
24
ScopeView {
 
25
    id: scopeView
26
26
 
27
27
    // FIXME: a way to aggregate these models would be ideal
28
28
    property var mainStageApplicationsModel: shell.applicationManager.mainStageApplications
40
40
    }
41
41
 
42
42
    Binding {
43
 
        target: lensView.lens
 
43
        target: scopeView.scope
44
44
        property: "searchQuery"
45
45
        value: pageHeader.searchQuery
46
46
    }
86
86
        dynamicSortFilter: true
87
87
        filterRole: 2 // this is the category id for each result
88
88
        filterRegExp: /^3$/ // only proxy items that are category 3 - Installed
89
 
        model: dashContent.lenses.get("applications.lens").results
 
89
        model: dashContent.scopes.get("applications.scope").results
90
90
    }
91
91
 
92
92
    property var categoryModels: {
177
177
            width: categoryView.width
178
178
            text: i18n.tr("Apps")
179
179
            searchEntryEnabled: true
180
 
            searchHistory: lensView.searchHistory
 
180
            searchHistory: scopeView.searchHistory
181
181
        }
182
182
    }
183
183
}