import QtQuick 2.4 import Ubuntu.Thumbnailer 0.1 import Qt.labs.folderlistmodel 2.1 Item { width: 1000 height: 480 Component { id: thumbnailDelegate Image { id: thumbImage sourceSize.width: 280 sourceSize.height: 280 width: 280 height: 280 property string path source: path ? "image://thumbnailer/" + path : "" fillMode: Image.PreserveAspectCrop } } Timer { // interval: 20 // run on arale interval: 100 // run on krillin repeat: true running: true onTriggered: listView.incrementCurrentIndex() } ListView { id: listView width: parent.width height: 280 model: FolderListModel { folder: "/home/phablet/Pictures/com.ubuntu.camera/" } orientation: ListView.Horizontal cacheBuffer: parent.width * 2 highlightMoveVelocity: 1000000 delegate: Loader { id: thumbnailLoader sourceComponent: thumbnailDelegate asynchronous: true width: childrenRect.width height: childrenRect.height Binding { target: thumbnailLoader.item property: "path" value: filePath when: thumbnailLoader.status == Loader.Ready } } } MouseArea { anchors.fill: parent onClicked: Qt.quit() } }