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
|
@ -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