allow for udpating video and pres titles
This commit is contained in:
parent
a43a2ab39b
commit
f69d17d08b
2 changed files with 26 additions and 2 deletions
|
@ -126,7 +126,7 @@ Item {
|
|||
placeholderText: "Title..."
|
||||
text: presentation.title
|
||||
padding: 10
|
||||
/* onEditingFinished: updateTitle(text); */
|
||||
onEditingFinished: updateTitle(text);
|
||||
}
|
||||
|
||||
Item {
|
||||
|
@ -187,4 +187,16 @@ Item {
|
|||
root.presentation = presentation;
|
||||
print(presentation.filePath.toString());
|
||||
}
|
||||
|
||||
function updateTitle(text) {
|
||||
changeTitle(text, false);
|
||||
pressqlmodel.updateTitle(presentation.id, text);
|
||||
showPassiveNotification(presentation.title);
|
||||
}
|
||||
|
||||
function changeTitle(text, updateBox) {
|
||||
if (updateBox)
|
||||
presentationTitleField.text = text;
|
||||
presentation.title = text;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue