Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderView.qml
Show All 31 Lines | |||||
32 | FocusScope { | 32 | FocusScope { | ||
33 | id: main | 33 | id: main | ||
34 | 34 | | |||
35 | signal pressed | 35 | signal pressed | ||
36 | 36 | | |||
37 | property QtObject model: dir | 37 | property QtObject model: dir | ||
38 | property Item rubberBand: null | 38 | property Item rubberBand: null | ||
39 | 39 | | |||
40 | property alias view: gridView | ||||
40 | property alias isRootView: gridView.isRootView | 41 | property alias isRootView: gridView.isRootView | ||
41 | property alias currentIndex: gridView.currentIndex | 42 | property alias currentIndex: gridView.currentIndex | ||
42 | property alias url: dir.url | 43 | property alias url: dir.url | ||
43 | property alias status: dir.status | 44 | property alias status: dir.status | ||
44 | property alias positions: positioner.positions | 45 | property alias positions: positioner.positions | ||
45 | property alias errorString: dir.errorString | 46 | property alias errorString: dir.errorString | ||
46 | property alias dragging: dir.dragging | 47 | property alias dragging: dir.dragging | ||
47 | property alias locked: dir.locked | 48 | property alias locked: dir.locked | ||
▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 170 | Connections { | |||
170 | target: plasmoid | 171 | target: plasmoid | ||
171 | onExpandedChanged: { | 172 | onExpandedChanged: { | ||
172 | if (plasmoid.expanded && dir.status === Folder.FolderModel.Ready && !gridView.model) { | 173 | if (plasmoid.expanded && dir.status === Folder.FolderModel.Ready && !gridView.model) { | ||
173 | gridView.model = positioner; | 174 | gridView.model = positioner; | ||
174 | } | 175 | } | ||
175 | } | 176 | } | ||
176 | } | 177 | } | ||
177 | 178 | | |||
178 | // Lower the toolBox when an item is hovered, so it doesn't interfere with | | |||
179 | // its interaction (e.g. the selection button in the top left, cf. Bug 337060) | | |||
180 | Binding { | | |||
181 | target: toolBox | | |||
182 | property: "z" | | |||
183 | // 999 is the default "z" for desktop ToolBoxRoot | | |||
184 | value: main.hoveredItem ? -100 : 999 | | |||
185 | when: toolBox | | |||
186 | } | | |||
187 | | ||||
188 | Binding { | 179 | Binding { | ||
189 | target: plasmoid | 180 | target: plasmoid | ||
190 | property: "busy" | 181 | property: "busy" | ||
191 | value: !gridView.model && dir.status === Folder.FolderModel.Listing | 182 | value: !gridView.model && dir.status === Folder.FolderModel.Listing | ||
192 | } | 183 | } | ||
193 | 184 | | |||
194 | function makeBackButton() { | 185 | function makeBackButton() { | ||
195 | return Qt.createQmlObject("BackButtonItem {}", main); | 186 | return Qt.createQmlObject("BackButtonItem {}", main); | ||
▲ Show 20 Lines • Show All 1201 Lines • Show Last 20 Lines |