diff --git a/plasmoid/package/contents/ui/DeviceDelegate.qml b/plasmoid/package/contents/ui/DeviceDelegate.qml --- a/plasmoid/package/contents/ui/DeviceDelegate.qml +++ b/plasmoid/package/contents/ui/DeviceDelegate.qml @@ -24,6 +24,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.kdeconnect 1.0 import QtQuick.Controls.Styles 1.4 +import QtQuick.Dialogs 1.0 PlasmaComponents.ListItem { @@ -106,6 +107,29 @@ textFormat: Text.PlainText } + //Share + PlasmaComponents.Button + { + Share { + id: share + device: root.device + } + FileDialog { + id: fileDialog + title: "Please choose a file" + folder: shortcuts.home + } + + id: shareFile + iconSource: "document-share" + visible: share.available + tooltip: i18n("Share file") + onClicked: { + fileDialog.open() + share.plugin.shareUrl(fileDialog.fileUrl) + } + } + //Find my phone PlasmaComponents.Button {