Guest User

Untitled

a guest
Oct 5th, 2019
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/qml/pages/GalleryUI.qml b/qml/pages/GalleryUI.qml
  2. index 40b0910..c5ca2db 100644
  3. --- a/qml/pages/GalleryUI.qml
  4. +++ b/qml/pages/GalleryUI.qml
  5. @@ -85,6 +85,26 @@ Page {
  6. showRemorseItem();
  7. }
  8. }
  9. +
  10. + RoundButton {
  11. + id: btnShare
  12. +
  13. + icon.source: "image://theme/icon-m-share"
  14. + size: Theme.itemSizeMedium
  15. +
  16. + onClicked: {
  17. + console.log("Clicked share button");
  18. + var fileName = getFileName(gallery.currentIndex);
  19. + var mimeType = gallery.currentIndex.isVideo ? "video/" : "image/";
  20. + pageStack.push("Sailfish.TransferEngine.SharePage",
  21. + {
  22. + "source": fileName,
  23. + "mimeType": mimeType,
  24. + "content": { "type": mimeType, "data": fileName, "status": fileName },
  25. + "serviceFilter": ["sharing", "e-mail"]
  26. + });
  27. + }
  28. + }
  29. }
  30.  
  31. SlideshowView {
RAW Paste Data