making songs have a list of slides visible to assist in editing

This commit is contained in:
Chris Cochrun 2022-04-26 13:10:26 -05:00
parent ceefbebe23
commit 39fc19dff2
4 changed files with 78 additions and 26 deletions

View file

@ -222,8 +222,9 @@ Item {
id: slideEditor
Layout.preferredWidth: 500
Layout.fillWidth: true
Layout.preferredHeight: slideEditor.width / 16 * 9
Layout.fillHeight: true
Layout.bottomMargin: 30
Layout.topMargin: 30
Layout.rightMargin: 20
Layout.leftMargin: 20
}
@ -284,13 +285,14 @@ Item {
} else {
slideEditor.imageBackground = "";
slideEditor.videoBackground = song.background;
slideEditor.loadVideo();
/* slideEditor.loadVideo(); */
}
changeSlideHAlignment(song.horizontalTextAlignment);
changeSlideVAlignment(song.verticalTextAlignment);
changeSlideFont(song.font, true);
changeSlideFontSize(song.fontSize, true)
changeSlideText(songIndex);
print(s.title);
}
@ -396,4 +398,11 @@ Item {
fontSizeBox.value = fontSize;
slideEditor.fontSize = fontSize;
}
function changeSlideText(id) {
const verses = songsqlmodel.getLyricList(id);
print("Here are the verses: " + verses);
slideEditor.songs.clear()
verses.forEach(slideEditor.appendVerse);
}
}