switching back until I finish upgrading to 0.5.3 cxx-qt

This is where they made sure QVariantMap maps to QMap_QString_QVariant
in Rust.
This commit is contained in:
Chris Cochrun 2023-05-19 09:18:34 -05:00
parent 40533df52a
commit 38ae7c9850
5 changed files with 14 additions and 14 deletions

View file

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

View file

@ -306,15 +306,15 @@ Item {
id: pdf id: pdf
} }
WebEngineView { /* WebEngineView { */
id: web /* id: web */
height: 0 /* height: 0 */
width: 0 /* width: 0 */
onLoadingChanged: { /* onLoadingChanged: { */
if (loadRequest.status == 2) /* if (loadRequest.status == 2) */
addHtml(url); /* addHtml(url); */
} /* } */
} /* } */
} }
function addVideo(url) { function addVideo(url) {

View file

@ -183,7 +183,7 @@ Item {
} }
function changePresentation(index) { function changePresentation(index) {
let pres = presProxyModel.presentationModel.getItem(index); 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

@ -411,7 +411,7 @@ Item {
function newSong(index) { function newSong(index) {
clearSlides(); clearSlides();
song = songProxyModel.songModel.getItem(index); song = songProxyModel.getSong(index);
console.log(song.lyrics); console.log(song.lyrics);
songIndex = song.id; songIndex = song.id;
@ -435,7 +435,7 @@ Item {
function changeSong(index) { function changeSong(index) {
clearSlides(); clearSlides();
console.log(index); console.log(index);
song = songProxyModel.songMode.getItem(index); song = songProxyModel.getSong(index);
console.log(song.lyrics); console.log(song.lyrics);
songIndex = song.id; songIndex = song.id;
console.log(song.id); console.log(song.id);

View file

@ -237,7 +237,7 @@ Item {
} }
function changeVideo(index) { function changeVideo(index) {
let vid = videoProxyModel.videoModel.getItem(index); let vid = videoProxyModel.getVideo(index);
root.video = vid; root.video = vid;
console.log(video.startTime); console.log(video.startTime);
console.log(video.endTime); console.log(video.endTime);