saving some updates
This commit is contained in:
parent
bb3a5d9b7b
commit
9b75c366de
4 changed files with 70 additions and 39 deletions
|
@ -556,7 +556,7 @@ Item {
|
|||
function addItem(index, type, itemIndex) {
|
||||
switch (type) {
|
||||
case 'image': {
|
||||
const image = imageProxyModel.getImage(itemIndex);
|
||||
const image = imageModel.getItem(itemIndex);
|
||||
console.log("adding: " + image.title + " of type " + type);
|
||||
ServiceItemModel.insertItem(index, image.title,
|
||||
"", type, image.filePath,
|
||||
|
@ -566,7 +566,7 @@ Item {
|
|||
return;
|
||||
}
|
||||
case 'video': {
|
||||
const video = videoProxyModel.getVideo(itemIndex);
|
||||
const video = videoModel.getItem(itemIndex);
|
||||
console.log("adding: " + video.title + " of type " + type);
|
||||
ServiceItemModel.insertItem(index, video.title,
|
||||
"", type, video.filePath,
|
||||
|
@ -576,8 +576,8 @@ Item {
|
|||
return;
|
||||
}
|
||||
case 'song': {
|
||||
const lyrics = songProxyModel.getLyricList(itemIndex);
|
||||
const song = songProxyModel.getSong(itemIndex);
|
||||
const lyrics = songModel.getLyricList(itemIndex);
|
||||
const song = songModel.getItem(itemIndex);
|
||||
/* showPassiveNotification(song.title); */
|
||||
console.log("adding: " + song.title +
|
||||
" of type " + type +
|
||||
|
@ -591,7 +591,7 @@ Item {
|
|||
return;
|
||||
}
|
||||
case 'presentation': {
|
||||
const pres = presProxyModel.presentationModel.getItem(itemIndex);
|
||||
const pres = presentationModel.getItem(itemIndex);
|
||||
console.log("adding: " + pres.title +
|
||||
" of type " + type +
|
||||
" with " + pres.pageCount + " slides");
|
||||
|
@ -611,7 +611,7 @@ Item {
|
|||
function appendItem(type, itemIndex) {
|
||||
switch (type) {
|
||||
case 'image': {
|
||||
const image = imageProxyModel.getImage(itemIndex);
|
||||
const image = imageModel.getItem(itemIndex);
|
||||
console.log("adding: " + image.title + " of type " + type);
|
||||
ServiceItemModel.addItem(image.title,
|
||||
type, image.filePath,
|
||||
|
@ -621,7 +621,7 @@ Item {
|
|||
return;
|
||||
}
|
||||
case 'video': {
|
||||
const video = videoProxyModel.getVideo(itemIndex);
|
||||
const video = videoModel.getItem(itemIndex);
|
||||
console.log("adding: " + video.title + " of type " + type);
|
||||
ServiceItemModel.addItem(video.title,
|
||||
type, video.filePath,
|
||||
|
@ -631,8 +631,8 @@ Item {
|
|||
return;
|
||||
}
|
||||
case 'song': {
|
||||
const lyrics = songProxyModel.getLyricList(itemIndex);
|
||||
const song = songProxyModel.getSong(itemIndex);
|
||||
const lyrics = songModel.getLyricList(itemIndex);
|
||||
const song = songModel.getItem(itemIndex);
|
||||
console.log("adding: " + song.title +
|
||||
" of type " + type +
|
||||
" with " + lyrics.length + " slides");
|
||||
|
@ -645,7 +645,7 @@ Item {
|
|||
return;
|
||||
}
|
||||
case 'presentation': {
|
||||
const pres = presProxyModel.presentationModel.getItem(itemIndex);
|
||||
const pres = presentationModel.getItem(itemIndex);
|
||||
console.log("adding: " + pres.title +
|
||||
" of type " + type +
|
||||
" with " + pres.pageCount + " slides");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue