bug in appending songs fixed
This commit is contained in:
parent
1b0f638df1
commit
a798427d5b
1 changed files with 4 additions and 5 deletions
|
@ -18,7 +18,7 @@ Item {
|
||||||
property var hlItem
|
property var hlItem
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: background
|
id: bg
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ Item {
|
||||||
FastBlur {
|
FastBlur {
|
||||||
id: backgroundBlur
|
id: backgroundBlur
|
||||||
source: ShaderEffectSource {
|
source: ShaderEffectSource {
|
||||||
sourceItem: background
|
sourceItem: bg
|
||||||
sourceRect: Qt.rect(0, 0, backgroundBlur.width, backgroundBlur.height)
|
sourceRect: Qt.rect(0, 0, backgroundBlur.width, backgroundBlur.height)
|
||||||
}
|
}
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -572,15 +572,14 @@ Item {
|
||||||
function appendItem(name, type, background, backgroundType,
|
function appendItem(name, type, background, backgroundType,
|
||||||
text, audio, font, fontSize, itemID) {
|
text, audio, font, fontSize, itemID) {
|
||||||
console.log("adding: " + name + " of type " + type);
|
console.log("adding: " + name + " of type " + type);
|
||||||
let lyrics;
|
|
||||||
if (type === "song") {
|
if (type === "song") {
|
||||||
console.log("THIS IS A SONG!!!!!");
|
console.log("THIS IS A SONG!!!!!");
|
||||||
console.log(itemID);
|
console.log(itemID);
|
||||||
lyrics = songsqlmodel.getLyricList(itemID);
|
let lyrics = songsqlmodel.getLyricList(itemID);
|
||||||
console.log(lyrics);
|
console.log(lyrics);
|
||||||
ServiceItemModel.addItem(name, type, background,
|
ServiceItemModel.addItem(name, type, background,
|
||||||
backgroundType, lyrics,
|
backgroundType, lyrics,
|
||||||
audio, font, fontSize, lyrics.length());
|
audio, font, fontSize, lyrics.length);
|
||||||
/* totalServiceItems++; */
|
/* totalServiceItems++; */
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue