Guest User

Untitled

a guest
Mar 4th, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 2.0
  2. import Sailfish.Silica 1.0
  3. import Nemo.FileManager 1.0
  4. import Sailfish.TransferEngine 1.0
  5.  
  6. Page {
  7. id: page
  8.  
  9. property string file
  10.  
  11. // The effective value will be restricted by ApplicationWindow.allowedOrientations
  12. allowedOrientations: Orientation.All
  13.  
  14. ShareMethodList {
  15. id: shareMethodList
  16. anchors.fill: parent
  17. header: PageHeader {
  18. title: "Share"
  19. }
  20. //filter: type
  21. filter: "image/jpeg"
  22. source: "file://" + page.file
  23. content: {
  24. "name": "Photo from advanced camera",
  25. "data": "file://" + page.file,
  26. "type": "image/jpeg",
  27. "icon": "image://theme/icon-m-file-image"
  28. }
  29.  
  30. ViewPlaceholder {
  31. enabled: shareMethodList.model.count === 0
  32. text: "No sharing accounts available!"
  33. }
  34. }
  35. }
RAW Paste Data