123456789101112131415161718192021222324252627282930 |
- import QtQuick 2.5
- import PictureModel 1.0
- // Forgive me
- import "../.."
- ListView {
- QtObject {
- id: d
- property bool settled: false
- }
- anchors.fill: parent
- delegate: Image {
- source: path
- height: size.height
- width: size.width
- Component.onDestruction: {
- d.settled ? nativeUtils.imageCollection.retireIndex(index) : undefined
- }
- }
- model: nativeUtils.imageCollection
- Component.onCompleted: {
- nativeUtils.imageCollection.assumeLinearAccess()
- d.settled = true
- }
- }
|