Files
I-DeskPet/Modules/GifsLoader.qml
T
2025-12-03 13:53:58 +01:00

25 lines
537 B
QML

import QtQuick
import qs.Modules
Repeater {
id: gifRepeater
required property list<string> gifsList
property int firstWidth
property int lastWidth
model: gifsList
Item {
x: index === 0 ? 0 : gifRepeater.itemAt(index - 1).x + gifRepeater.itemAt(index - 1).width
y: Screen.height - height
width: gif.width
height: gif.height
AnimatedImage {
id: gif
source: modelData
fillMode: Image.PreserveAspectFit
}
Mouse {}
}
}