nextSlideAction triggers nextslide on last item in list
This commit is contained in:
parent
2e72a01c6f
commit
62e1b07ec1
4 changed files with 12 additions and 3 deletions
|
@ -116,6 +116,7 @@ ColumnLayout {
|
|||
}
|
||||
onClicked: {
|
||||
serviceItemList.currentIndex = index;
|
||||
currentServiceItem = index;
|
||||
changeServiceItem(index);
|
||||
}
|
||||
onRightClicked: rightClickMenu.popup()
|
||||
|
|
|
@ -12,6 +12,7 @@ Controls.Page {
|
|||
padding: 0
|
||||
|
||||
// properties passed around for the slides
|
||||
property int currentServiceItem
|
||||
property url imageBackground: ""
|
||||
property url videoBackground: ""
|
||||
property int blurRadius: 0
|
||||
|
|
|
@ -135,6 +135,7 @@ Item {
|
|||
} else {
|
||||
print("Next slide time");
|
||||
textIndex = 0;
|
||||
previewSlide.text = "";
|
||||
nextSlide();
|
||||
}
|
||||
} else if (itemType === "video")
|
||||
|
@ -144,6 +145,8 @@ Item {
|
|||
}
|
||||
|
||||
function nextSlide() {
|
||||
currentServiceItem++;
|
||||
changeServiceItem(currentServiceItem);
|
||||
print(slideItem);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue