Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderView.qml
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Line(s) | 126 | function drop(target, event, pos) { | |||
---|---|---|---|---|---|
129 | var dragPos = mapToItem(gridView.contentItem, listener.dragX, listener.dragY); | 129 | var dragPos = mapToItem(gridView.contentItem, listener.dragX, listener.dragY); | ||
130 | var dragIndex = gridView.indexAt(dragPos.x, dragPos.y); | 130 | var dragIndex = gridView.indexAt(dragPos.x, dragPos.y); | ||
131 | 131 | | |||
132 | if (listener.dragX == -1 || dragIndex != dropIndex) { | 132 | if (listener.dragX == -1 || dragIndex != dropIndex) { | ||
133 | dir.drop(target, event, dropItemAt(dropPos)); | 133 | dir.drop(target, event, dropItemAt(dropPos)); | ||
134 | } | 134 | } | ||
135 | } | 135 | } | ||
136 | 136 | | |||
137 | Connections { | ||||
138 | target: dir | ||||
139 | onPopupMenuAboutToShow: { | ||||
140 | plasmoid.processMimeData(mimeData, x, y, dropJob); | ||||
141 | } | ||||
142 | } | ||||
137 | function makeBackButton() { | 143 | function makeBackButton() { | ||
138 | return Qt.createQmlObject("BackButtonItem {}", main); | 144 | return Qt.createQmlObject("BackButtonItem {}", main); | ||
139 | } | 145 | } | ||
140 | 146 | | |||
141 | function doCd(row) { | 147 | function doCd(row) { | ||
142 | history.push(url); | 148 | history.push(url); | ||
143 | updateHistory(); | 149 | updateHistory(); | ||
144 | dir.cd(row); | 150 | dir.cd(row); | ||
▲ Show 20 Lines • Show All 1057 Lines • Show Last 20 Lines |