clarify parameters
This commit is contained in:
parent
0086c20529
commit
1559c72618
3 changed files with 6 additions and 6 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue