[KateFileTreeModel] Implement dragging files from it
ClosedPublic

Authored by broulik on Apr 26 2017, 2:39 PM.

Details

Summary

Allows to drag a file from the file tree.

BUG: 372201
FIXED-IN: 17.08.0

Test Plan

Opened a file, started dragging it and successfully pasted it in another application.
Items with children and the "Untitled" entry were not draggable.

Interestingly I can also drop files into the tree and it opens them. If I drag a file within the tree it won't do anything as the file is already opened.

Diff Detail

Repository
R40 Kate
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Apr 26 2017, 2:39 PM
Restricted Application added a subscriber: kwrite-devel. · View Herald TranscriptApr 26 2017, 2:39 PM
broulik edited the summary of this revision. (Show Details)Apr 26 2017, 2:55 PM
dhaumann accepted this revision.Apr 27 2017, 8:58 AM
dhaumann added a subscriber: dhaumann.

Looks good to me, please commit to master branch only.

This revision is now accepted and ready to land.Apr 27 2017, 8:58 AM
This revision was automatically updated to reflect the committed changes.