Drag n Drop Filetransfer on the plasmoid
Closed, ResolvedPublic

nicolasfella moved this task from Ideas to Junior Jobs on the KDE Connect board.May 10 2018, 4:42 PM

Hello, I'd like to try to implement this task

apol added a subscriber: apol.Aug 1 2018, 5:15 PM

Sure, go for it! :)

sefaeyeoglu added a subscriber: sefaeyeoglu.EditedSep 27 2018, 11:36 AM

I tried to implement this feature, but I can't seem to get the DropArea working. Could it be possible that PlasmoidViewer does not support drag 'n' drop? It always appears as an icon inside the PlasmoidViewer similar to FolderView on the normal desktop.

apol added a comment.Sep 28 2018, 1:57 PM

You can see how it's done in the QuickShare plasmoid: https://phabricator.kde.org/source/kdeplasma-addons/browse/master/applets/quickshare/plasmoid/contents/ui/main.qml

In the case of the KDE Connect plasmoid it could make sense to keep it only in the compactRepresentation.

apol added a comment.Sep 28 2018, 2:00 PM

Could it be possible that PlasmoidViewer does not support drag 'n' drop?

PlasmoidViewer definitely supports drag and drop. You may want to use the right arguments to make sure you're testing it as it shows on the tray (i.e. the compact representation)

fstpierre added a subscriber: fstpierre.

I have succeeded in implementing this feature based mostly on what is done in the quickshare plasmoid. So far I can transfer one or multiple files to the device by dropping them on the list item in the plasmoid. This area covers the name of the device, the buttons (ring, manual file transfer, device browsing) and the notification area without interfering with their current function.

sredman closed this task as Resolved.Jan 2 2019, 5:28 PM