From 1559c726189d474d791b853a6ba912d855bcf611 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sun, 5 Mar 2023 21:35:49 -0600 Subject: [PATCH] clarify parameters --- src/qml/presenter/ImageEditor.qml | 4 ++-- src/qml/presenter/PresentationEditor.qml | 4 ++-- src/qml/presenter/VideoEditor.qml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/qml/presenter/ImageEditor.qml b/src/qml/presenter/ImageEditor.qml index ad4531e..765cbca 100644 --- a/src/qml/presenter/ImageEditor.qml +++ b/src/qml/presenter/ImageEditor.qml @@ -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()); } diff --git a/src/qml/presenter/PresentationEditor.qml b/src/qml/presenter/PresentationEditor.qml index b5a8bc9..a33a885 100644 --- a/src/qml/presenter/PresentationEditor.qml +++ b/src/qml/presenter/PresentationEditor.qml @@ -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); diff --git a/src/qml/presenter/VideoEditor.qml b/src/qml/presenter/VideoEditor.qml index 41a1773..da66e5d 100644 --- a/src/qml/presenter/VideoEditor.qml +++ b/src/qml/presenter/VideoEditor.qml @@ -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(); }