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

« back to all changes in this revision

Viewing changes to Dash/ScopeView.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:
19
19
import Unity 0.1
20
20
 
21
21
FocusScope {
22
 
    property Lens lens
 
22
    property Scope scope
23
23
    property SortFilterProxyModel categories: categoryFilter
24
24
    property bool isCurrent
25
25
    property ListModel searchHistory
29
29
    signal positionedAtBeginning
30
30
 
31
31
    // FIXME delay the search so that daemons have time to settle
32
 
    onLensChanged: timer.restart()
 
32
    onScopeChanged: timer.restart()
33
33
 
34
34
    Timer {
35
35
        id: timer
36
36
        interval: 2000
37
 
        onTriggered: lens.searchQuery = ""
 
37
        onTriggered: scope.searchQuery = ""
38
38
    }
39
39
 
40
40
    SortFilterProxyModel {
41
41
        id: categoryFilter
42
 
        model: lens.categories
 
42
        model: scope.categories
43
43
        dynamicSortFilter: true
44
44
        filterRole: Categories.RoleCount
45
45
        filterRegExp: /^0$/