clarify parameters

This commit is contained in:
Chris Cochrun 2023-03-05 21:35:49 -06:00
parent 0086c20529
commit 1559c72618
3 changed files with 6 additions and 6 deletions

View file

@ -131,8 +131,8 @@ Item {
}
}
function changeImage(image) {
let img = imageProxyModel.getImage(image);
function changeImage(index) {
let img = imageProxyModel.getImage(index);
root.image = img;
console.log(img.filePath.toString());
}

View file

@ -147,8 +147,8 @@ Item {
}
}
function changePresentation(presentation) {
let pres = presProxyModel.getPresentation(presentation);
function changePresentation(index) {
let pres = presProxyModel.getPresentation(index);
root.presentation = pres;
console.log(pres.filePath.toString());
updatePageCount(presentationPreview.frameCount);

View file

@ -224,8 +224,8 @@ Item {
}
}
function changeVideo(video) {
let vid = videoProxyModel.getVideo(video);
function changeVideo(index) {
let vid = videoProxyModel.getVideo(index);
root.video = vid;
mpvLoadingTimer.restart();
}