adding todo and previousSlide and refactor nextSlide
This commit is contained in:
parent
85e260c874
commit
52961bea54
3 changed files with 18 additions and 7 deletions
2
TODO.org
2
TODO.org
|
@ -4,6 +4,8 @@
|
|||
:END:
|
||||
|
||||
* 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
|
||||
[[file:~/dev/church-presenter/TODO.org::*Fix broken append when importing River song][Fix broken append when importing River song]]
|
||||
|
||||
|
|
|
@ -183,6 +183,7 @@ Controls.Page {
|
|||
videoEditor.visible = false;
|
||||
videoEditor.stop();
|
||||
songEditor.visible = false;
|
||||
imageEditor.visible = false;
|
||||
presentation.visible = true;
|
||||
editMode = false;
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ Item {
|
|||
Layout.alignment: Qt.AlignRight
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onPressed: changeSlidePrevious()
|
||||
onPressed: previousSlideAction()
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
}
|
||||
}
|
||||
|
@ -152,6 +152,20 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
function nextSlide() {
|
||||
changeServiceItem(currentServiceItem++);
|
||||
print(slideItem);
|
||||
}
|
||||
|
||||
function previousSlideAction() {
|
||||
|
||||
}
|
||||
|
||||
function previousSlide() {
|
||||
changeServiceItem(--currentServiceItem);
|
||||
print(slideItem);
|
||||
}
|
||||
|
||||
function changeSlide() {
|
||||
if (itemType === "song") {
|
||||
previewSlide.text = root.text[textIndex];
|
||||
|
@ -165,12 +179,6 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
function nextSlide() {
|
||||
currentServiceItem++;
|
||||
changeServiceItem(currentServiceItem);
|
||||
print(slideItem);
|
||||
}
|
||||
|
||||
function clearText() {
|
||||
previewSlide.text = "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue