on xenial help sign in
booo
commita1d63b7cb8d9bec266c3aeb7cb5473fad747b9ff authorAlbert Astals <albert.astals@canonical.com> dateWed 27 Nov 2013, 16:36 (13 years ago) parent0290ded
1 file changed−71
Dash/ScopeView.qml.THIS−71
Dash/ScopeView.qml.THISdeleted−71
@@ -1,71 +0,0 @@
1−/*
2− * Copyright (C) 2013 Canonical, Ltd.
3− *
4− * This program is free software; you can redistribute it and/or modify
5− * it under the terms of the GNU General Public License as published by
6− * the Free Software Foundation; version 3.
7− *
8− * This program is distributed in the hope that it will be useful,
9− * but WITHOUT ANY WARRANTY; without even the implied warranty of
10− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11− * GNU General Public License for more details.
12− *
13− * You should have received a copy of the GNU General Public License
14− * along with this program. If not, see <http://www.gnu.org/licenses/>.
15− */
16−
17−import QtQuick 2.0
18−import Utils 0.1
19−import Unity 0.1
20−import "../Components"
21−
22−FocusScope {
23− property Scope scope
24− property SortFilterProxyModel categories: categoryFilter
25− property bool isCurrent
26− property bool moving: false
27− property int tabBarHeight: 0
28− property PageHeader pageHeader: null
29− property OpenEffect openEffect: null
30− property Item previewListView: null
31−
32− signal endReached
33− signal movementStarted
34− signal positionedAtBeginning
35− signal headerPositionChanged(int position)
36− signal headerHeightChanged(int height)
37−
38− // FIXME delay the search so that daemons have time to settle, note that
39− // removing this will break ScopeView::test_changeScope
40− onScopeChanged: {
41− if (scope) {
42− timer.restart();
43− scope.activateApplication.connect(activateApp);
44− }
45− }
46−
47− function activateApp(desktopFilePath) {
48− shell.activateApplication(desktopFilePath);
49− }
50−
51− Binding {
52− target: scope
53− property: "isActive"
54− value: isCurrent
55− }
56−
57− Timer {
58− id: timer
59− interval: 2000
60− onTriggered: scope.searchQuery = ""
61− }
62−
63− SortFilterProxyModel {
64− id: categoryFilter
65− model: scope ? scope.categories : null
66− dynamicSortFilter: true
67− filterRole: Categories.RoleCount
68− filterRegExp: /^0$/
69− invertMatch: true
70− }
71−}