Fileview
This commit is contained in:
@@ -52,8 +52,8 @@ Singleton {
|
||||
|
||||
property string gifFolder: Quickshell.shellDir + "/Gifs"
|
||||
property var scaling: 1
|
||||
property int maxWidth: 200
|
||||
property int maxHeight: 200
|
||||
property int maxWidth: 1000
|
||||
property int maxHeight: 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ Repeater {
|
||||
required property int index
|
||||
required property string modelData
|
||||
|
||||
function xPos(): void {
|
||||
function xPos(): int {
|
||||
let xPos = 0;
|
||||
const item = gifRepeater.itemAt(index - 1);
|
||||
if ( item ) xPos += item.x + item.width;
|
||||
@@ -32,8 +32,12 @@ Repeater {
|
||||
AnimatedImage {
|
||||
id: gif
|
||||
source: gifItem.modelData
|
||||
// fillMode: Image.PreserveAspectFit
|
||||
fillMode: Image.PreserveAspectFit
|
||||
anchors.fill: parent
|
||||
Component.onCompleted: {
|
||||
var s = gifItem.modelData.split("/")
|
||||
console.log(s[s.length - 1].split(".")[0])
|
||||
}
|
||||
}
|
||||
|
||||
Mouse {}
|
||||
|
||||
Reference in New Issue
Block a user