Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Component {
- id: viewDelegate
- Image {
- source: filePath
- width: view.width
- height: view.height
- smooth: false
- fillMode: Image.PreserveAspectFit
- sourceSize.width: width
- asynchronous: true
- }
- }
- ListView {
- id: view
- anchors.fill: viewBackground
- anchors.margins: logoTop.width / 5
- model: FolderListModel {
- nameFilters: [ "*.jpg" ]
- folder: "../../data"
- sortField: FolderListModel.Name
- }
- delegate: viewDelegate
- orientation: ListView.Horizontal
- snapMode: ListView.SnapOneItem
- cacheBuffer: width * 2
- }
- Progress {
- width: 200
- height: 22;
- anchors.centerIn: parent
- progress: viewDelegate.progress
- visible: viewDelegate.status != Component.Ready
- }
Add Comment
Please, Sign In to add comment