removing some cruft
This commit is contained in:
parent
50fc745335
commit
e0bcce3f72
2 changed files with 6 additions and 26 deletions
|
@ -497,31 +497,19 @@ Item {
|
||||||
clearSlides();
|
clearSlides();
|
||||||
const updatedSong = songModel.getItem(index);
|
const updatedSong = songModel.getItem(index);
|
||||||
Utils.dbg(updatedSong.vorder + " " + updatedSong.title + " " + updatedSong.audio);
|
Utils.dbg(updatedSong.vorder + " " + updatedSong.title + " " + updatedSong.audio);
|
||||||
/* songEditorModel.title = updatedSong.title; */
|
|
||||||
/* songEditorModel.lyrics = updatedSong.lyrics; */
|
|
||||||
/* songEditorModel.author = updatedSong.author; */
|
|
||||||
/* songEditorModel.ccli = updatedSong.ccli; */
|
|
||||||
/* songEditorModel.audio = updatedSong.audio; */
|
|
||||||
/* songEditorModel.verseOrder = updatedSong.vorder; */
|
|
||||||
/* songEditorModel.background = updatedSong.background; */
|
|
||||||
/* songEditorModel.backgroundType = updatedSong.backgroundType; */
|
|
||||||
/* songEditorModel.horizontalTextAlignment = updatedSong.horizontalTextAlignment; */
|
|
||||||
/* songEditorModel.verticalTextAlignment = updatedSong.verticalTextAlignment; */
|
|
||||||
/* songEditorModel.font = updatedSong.font; */
|
|
||||||
/* songEditorModel.fontSize = updatedSong.fontSize; */
|
|
||||||
songEditorModel.loadSong(index);
|
songEditorModel.loadSong(index);
|
||||||
songEditorModel.checkVerseOrder();
|
songEditorModel.checkVerseOrder();
|
||||||
songEditorModel.checkFiles();
|
songEditorModel.checkFiles();
|
||||||
songID = updatedSong.id;
|
songID = updatedSong.id;
|
||||||
|
|
||||||
changeSlideHAlignment(song.horizontalTextAlignment);
|
changeSlideHAlignment(songEditorModel.horizontalTextAlignment);
|
||||||
changeSlideVAlignment(song.verticalTextAlignment);
|
changeSlideVAlignment(songEditorModel.verticalTextAlignment);
|
||||||
changeSlideFont(song.font, true);
|
changeSlideFont(songEditorModel.font, true);
|
||||||
changeSlideFontSize(song.fontSize, true)
|
changeSlideFontSize(songEditorModel.fontSize, true)
|
||||||
changeSlideText(index);
|
changeSlideText(index);
|
||||||
Utils.dbg("Changing to song: " + song.title + " with ID: " + songID);
|
Utils.dbg("Changing to song: " + songEditorModel.title + " with ID: " + songID);
|
||||||
footerFirstText = "Song: ";
|
footerFirstText = "Song: ";
|
||||||
footerSecondText = song.title;
|
footerSecondText = songEditorModel.title;
|
||||||
songList.loadVideo();
|
songList.loadVideo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -100,14 +100,6 @@ impl Default for SongEditorRust {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl song_editor::SongEditor {
|
impl song_editor::SongEditor {
|
||||||
fn idk(self: Pin<&mut Self>) {
|
|
||||||
if let Some(model) = unsafe { self.song_model().as_mut() } {
|
|
||||||
let pinned_model = unsafe { Pin::new_unchecked(model) };
|
|
||||||
pinned_model.update_ccli(0, QString::from("idk"));
|
|
||||||
}
|
|
||||||
todo!();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn load_song(mut self: Pin<&mut Self>, song_index: i32) {
|
fn load_song(mut self: Pin<&mut Self>, song_index: i32) {
|
||||||
if let Some(model) = unsafe { self.song_model().as_ref() } {
|
if let Some(model) = unsafe { self.song_model().as_ref() } {
|
||||||
let pinned_model = unsafe { Pin::new_unchecked(model) };
|
let pinned_model = unsafe { Pin::new_unchecked(model) };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue