Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderViewLayer.qml
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 49 | for (var i = 0; i < sharedActions.length; i++) { | |||
---|---|---|---|---|---|
52 | modelAction = folderView.model.action(actionName); | 52 | modelAction = folderView.model.action(actionName); | ||
53 | 53 | | |||
54 | appletAction.text = modelAction.text; | 54 | appletAction.text = modelAction.text; | ||
55 | appletAction.enabled = modelAction.enabled; | 55 | appletAction.enabled = modelAction.enabled; | ||
56 | appletAction.visible = modelAction.visible; | 56 | appletAction.visible = modelAction.visible; | ||
57 | } | 57 | } | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | function cancelRename() { | ||||
61 | folderView.cancelRename(); | ||||
62 | } | ||||
63 | | ||||
60 | PlasmaCore.Svg { | 64 | PlasmaCore.Svg { | ||
61 | id: actionOverlays | 65 | id: actionOverlays | ||
62 | 66 | | |||
63 | imagePath: "widgets/action-overlays" | 67 | imagePath: "widgets/action-overlays" | ||
64 | multipleImages: true | 68 | multipleImages: true | ||
65 | size: "16x16" | 69 | size: "16x16" | ||
66 | } | 70 | } | ||
67 | 71 | | |||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 135 | onExpandedChanged: { | |||
132 | if (root.isPopup && !plasmoid.expanded) { | 136 | if (root.isPopup && !plasmoid.expanded) { | ||
133 | if (folderView.url != plasmoid.configuration.url) { | 137 | if (folderView.url != plasmoid.configuration.url) { | ||
134 | folderView.url = plasmoid.configuration.url; | 138 | folderView.url = plasmoid.configuration.url; | ||
135 | folderView.history = []; | 139 | folderView.history = []; | ||
136 | folderView.updateHistory(); | 140 | folderView.updateHistory(); | ||
137 | } | 141 | } | ||
138 | 142 | | |||
139 | folderView.currentIndex = -1; | 143 | folderView.currentIndex = -1; | ||
140 | folderView.model.clearSelection(); | 144 | folderView.model.clearSelection(); | ||
broulik: Whoops, removing this was actually not intentional. | |||||
145 | folderView.cancelRename(); | ||||
141 | } | 146 | } | ||
142 | } | 147 | } | ||
143 | 148 | | |||
144 | onExternalData: { | 149 | onExternalData: { | ||
145 | plasmoid.configuration.url = data | 150 | plasmoid.configuration.url = data | ||
146 | } | 151 | } | ||
147 | } | 152 | } | ||
148 | 153 | | |||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |
Whoops, removing this was actually not intentional.