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) { function changeImage(index) {
let img = imageProxyModel.getImage(image); let img = imageProxyModel.getImage(index);
root.image = img; root.image = img;
console.log(img.filePath.toString()); console.log(img.filePath.toString());
} }

View file

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

View file

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