Status | Assigned | Task | ||
---|---|---|---|---|
Open | eduisters | T8293 Improve file sharing | ||
Resolved | fstpierre | T8288 Drag n Drop Filetransfer on the plasmoid |
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.
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.
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)
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.