fixing bugs in setting song attributes
This commit is contained in:
parent
13a592be51
commit
8acf57fc2b
2 changed files with 9 additions and 27 deletions
|
@ -10,7 +10,7 @@ Item {
|
|||
id: root
|
||||
|
||||
property int songIndex
|
||||
property var song
|
||||
property var song
|
||||
|
||||
GridLayout {
|
||||
id: mainLayout
|
||||
|
@ -268,10 +268,13 @@ Item {
|
|||
}
|
||||
|
||||
function changeSong(index) {
|
||||
song = songsqlmodel.getSong(index);
|
||||
const s = songsqlmodel.getSong(index);
|
||||
print(s.font);
|
||||
print(s.title);
|
||||
song = s;
|
||||
songIndex = index;
|
||||
|
||||
if (songBackgroundType == "image") {
|
||||
if (song.backgroundType == "image") {
|
||||
slideEditor.videoBackground = "";
|
||||
slideEditor.imageBackground = song.background;
|
||||
} else {
|
||||
|
@ -319,15 +322,11 @@ Item {
|
|||
|
||||
|
||||
function updateHorizontalTextAlignment(textAlignment) {
|
||||
if (alignmentSetTimer.running)
|
||||
return;
|
||||
changeSlideHAlignment(textAlignment);
|
||||
songsqlmodel.updateHorizontalTextAlignment(songIndex, textAlignment);
|
||||
}
|
||||
|
||||
function updateVerticalTextAlignment(textAlignment) {
|
||||
if (alignmentSetTimer.running)
|
||||
return;
|
||||
changeSlideVAlignment(textAlignment);
|
||||
songsqlmodel.updateVerticalTextAlignment(songIndex, textAlignment)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue