previous slide actions

This commit is contained in:
Chris Cochrun 2022-04-12 06:39:32 -05:00
parent 52961bea54
commit 86a5bbf93c
3 changed files with 26 additions and 10 deletions

View file

@ -55,13 +55,6 @@ Item {
hoverEnabled: true
onClicked: {}
}
Controls.ToolButton {
id: backgroundButton
text: "Background"
icon.name: "fileopen"
hoverEnabled: true
onClicked: backgroundType.open()
}
}
}
@ -127,6 +120,7 @@ Item {
}
function nextSlideAction() {
print(textIndex);
if (itemType === "song") {
if (textIndex === 0) {
previewSlide.text = root.text[textIndex];
@ -158,7 +152,24 @@ Item {
}
function previousSlideAction() {
print(textIndex);
if (itemType === "song") {
if (textIndex === 0) {
clearText();
nextSlide();
} else if (textIndex <= root.text.length) {
previewSlide.text = root.text[textIndex];
print(root.text[textIndex]);
--textIndex
}
} else if (itemType === "video") {
clearText();
previousSlide();
}
else if (itemType === "image") {
clearText();
previousSlide();
}
}
function previousSlide() {