previous slide actions
This commit is contained in:
parent
52961bea54
commit
86a5bbf93c
3 changed files with 26 additions and 10 deletions
|
@ -134,6 +134,7 @@ Controls.Page {
|
|||
presentation.loadVideo()
|
||||
}
|
||||
|
||||
print(item.text.length)
|
||||
if (item.text.length === 0) {
|
||||
presentation.text = [""];
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue