From db73165b635026dd3e3d7c99e04cccbd7ca7eaa5 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 13 Jul 2022 16:32:18 -0500 Subject: [PATCH] updating text on nextslideaction --- src/qml/presenter/Presentation.qml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/qml/presenter/Presentation.qml b/src/qml/presenter/Presentation.qml index 7b2fe59..58caf38 100644 --- a/src/qml/presenter/Presentation.qml +++ b/src/qml/presenter/Presentation.qml @@ -125,25 +125,25 @@ Item { print(textIndex); if (itemType === "song") { if (textIndex === 0) { - previewSlide.text = root.text[textIndex]; + SlideObject.setText(root.text[textIndex]); print(root.text[textIndex]); textIndex++; } else if (textIndex < root.text.length) { - previewSlide.text = root.text[textIndex]; + SlideObject.setText(root.text[textIndex]); print(root.text[textIndex]); textIndex++; } else { print("Next slide time"); textIndex = 0; - /* clearText(); */ + clearText(); nextSlide(); } } else if (itemType === "video") { - /* clearText(); */ + clearText(); nextSlide(); } else if (itemType === "image") { - /* clearText(); */ + clearText(); nextSlide(); } } @@ -157,19 +157,19 @@ Item { print(textIndex); if (itemType === "song") { if (textIndex === 0) { - /* clearText(); */ + clearText(); nextSlide(); } else if (textIndex <= root.text.length) { - previewSlide.text = root.text[textIndex]; + SlideObject.setText(root.text[textIndex]); print(root.text[textIndex]); --textIndex; } } else if (itemType === "video") { - /* clearText(); */ + clearText(); previousSlide(); } else if (itemType === "image") { - /* clearText(); */ + clearText(); previousSlide(); } } @@ -181,18 +181,18 @@ Item { function changeSlide() { if (itemType === "song") { - previewSlide.text = root.text[textIndex]; + SlideObject.setText(root.text[textIndex]); print(root.text[textIndex]); textIndex++; } else if (itemType === "video") { - /* clearText(); */ + clearText(); } else if (itemType === "image") { - /* clearText(); */ + clearText(); } } - /* function clearText() { */ - /* previewSlide.text = ""; */ - /* } */ + function clearText() { + SlideObject.setText(""); + } }