Guest User

Untitled

a guest
Jun 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Component {
  2. id: viewDelegate
  3.  
  4. Image {
  5. source: filePath
  6. width: view.width
  7. height: view.height
  8. smooth: false
  9. fillMode: Image.PreserveAspectFit
  10. sourceSize.width: width
  11. asynchronous: true
  12. }
  13. }
  14.  
  15. ListView {
  16. id: view
  17. anchors.fill: viewBackground
  18. anchors.margins: logoTop.width / 5
  19.  
  20. model: FolderListModel {
  21. nameFilters: [ "*.jpg" ]
  22. folder: "../../data"
  23. sortField: FolderListModel.Name
  24. }
  25.  
  26. delegate: viewDelegate
  27. orientation: ListView.Horizontal
  28. snapMode: ListView.SnapOneItem
  29. cacheBuffer: width * 2
  30. }
  31.  
  32. Progress {
  33. width: 200
  34. height: 22;
  35. anchors.centerIn: parent
  36. progress: viewDelegate.progress
  37. visible: viewDelegate.status != Component.Ready
  38. }
Add Comment
Please, Sign In to add comment