adding todo and previousSlide and refactor nextSlide

This commit is contained in:
Chris Cochrun 2022-04-11 17:32:42 -05:00
parent 85e260c874
commit 52961bea54
3 changed files with 18 additions and 7 deletions

View file

@ -4,6 +4,8 @@
:END: :END:
* Inbox * Inbox
** TODO implement previousSlide and previousAction
[[file:~/dev/church-presenter/src/qml/presenter/Presentation.qml::function nextSlide() {]]
** TODO Check for edge cases in inputing wrong vorder and lyrics ** TODO Check for edge cases in inputing wrong vorder and lyrics
[[file:~/dev/church-presenter/TODO.org::*Fix broken append when importing River song][Fix broken append when importing River song]] [[file:~/dev/church-presenter/TODO.org::*Fix broken append when importing River song][Fix broken append when importing River song]]

View file

@ -183,6 +183,7 @@ Controls.Page {
videoEditor.visible = false; videoEditor.visible = false;
videoEditor.stop(); videoEditor.stop();
songEditor.visible = false; songEditor.visible = false;
imageEditor.visible = false;
presentation.visible = true; presentation.visible = true;
editMode = false; editMode = false;
} }

View file

@ -79,7 +79,7 @@ Item {
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onPressed: changeSlidePrevious() onPressed: previousSlideAction()
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
} }
} }
@ -152,6 +152,20 @@ Item {
} }
} }
function nextSlide() {
changeServiceItem(currentServiceItem++);
print(slideItem);
}
function previousSlideAction() {
}
function previousSlide() {
changeServiceItem(--currentServiceItem);
print(slideItem);
}
function changeSlide() { function changeSlide() {
if (itemType === "song") { if (itemType === "song") {
previewSlide.text = root.text[textIndex]; previewSlide.text = root.text[textIndex];
@ -165,12 +179,6 @@ Item {
} }
} }
function nextSlide() {
currentServiceItem++;
changeServiceItem(currentServiceItem);
print(slideItem);
}
function clearText() { function clearText() {
previewSlide.text = ""; previewSlide.text = "";
} }