trying to add slide class as master controller for the slide
This commit is contained in:
parent
99afdd0b0f
commit
12a5b0bcf1
8 changed files with 220 additions and 4 deletions
|
@ -122,6 +122,9 @@ Controls.Page {
|
|||
const item = serviceItemModel.getItem(index);
|
||||
print("index grabbed: " + index);
|
||||
|
||||
slideObject.setImageBackground("/home/chris/Pictures/RoyalKing.png");
|
||||
print("The slides backgorund is: " + slideObject.imageBackground);
|
||||
|
||||
presentation.stopVideo()
|
||||
presentation.itemType = item.type;
|
||||
print("Time to start changing");
|
||||
|
|
|
@ -6,6 +6,7 @@ import QtQuick.Layouts 1.2
|
|||
/* import QtAudioEngine 1.15 */
|
||||
import org.kde.kirigami 2.13 as Kirigami
|
||||
import "./" as Presenter
|
||||
import org.presenter 1.0
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
@ -85,7 +86,7 @@ Item {
|
|||
Layout.alignment: Qt.AlignCenter
|
||||
textSize: width / 15
|
||||
itemType: root.itemType
|
||||
imageSource: imagebackground
|
||||
imageSource: SlideObject.imageBackground
|
||||
videoSource: vidbackground
|
||||
preview: true
|
||||
}
|
||||
|
@ -121,6 +122,7 @@ Item {
|
|||
|
||||
function nextSlideAction() {
|
||||
print(textIndex);
|
||||
print("YIPPEE KAYAYYYY!");
|
||||
if (itemType === "song") {
|
||||
if (textIndex === 0) {
|
||||
previewSlide.text = root.text[textIndex];
|
||||
|
|
|
@ -20,7 +20,7 @@ Item {
|
|||
property url imageSource: imageBackground
|
||||
property url videoSource: videoBackground
|
||||
property string chosenFont: "Quicksand"
|
||||
property var text: "This is demo text"
|
||||
property string text: "This is demo text"
|
||||
property color backgroundColor
|
||||
property var hTextAlignment: Text.AlignHCenter
|
||||
property var vTextAlignment: Text.AlignVCenter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue