follow the SlideObject for more parts
This commit is contained in:
parent
4efddac106
commit
51f8488089
7 changed files with 18 additions and 16 deletions
|
@ -122,19 +122,19 @@ 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");
|
||||
|
||||
if (item.backgroundType === "image") {
|
||||
presentation.vidbackground = "";
|
||||
presentation.imagebackground = item.background;
|
||||
print("The slides backgorund is: " + SlideObject.imageBackground);
|
||||
SlideObject.setVideoBackground("");
|
||||
SlideObject.setImageBackground(item.background);
|
||||
} else {
|
||||
presentation.imagebackground = "";
|
||||
presentation.vidbackground = item.background;
|
||||
print("The slides backgorund is: " + SlideObject.videoBackground);
|
||||
SlideObject.setImageBackground("");
|
||||
SlideObject.setVideoBackground(item.background);
|
||||
presentation.loadVideo()
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ Item {
|
|||
property url imagebackground
|
||||
property url vidbackground
|
||||
|
||||
Component.onCompleted: nextSlideAction()
|
||||
/* Component.onCompleted: nextSlideAction() */
|
||||
|
||||
GridLayout {
|
||||
anchors.fill: parent
|
||||
|
@ -87,7 +87,8 @@ Item {
|
|||
textSize: width / 15
|
||||
itemType: root.itemType
|
||||
imageSource: SlideObject.imageBackground
|
||||
videoSource: vidbackground
|
||||
videoSource: SlideObject.videoBackground
|
||||
text: SlideObject.text
|
||||
preview: true
|
||||
}
|
||||
|
||||
|
@ -122,8 +123,6 @@ Item {
|
|||
|
||||
function nextSlideAction() {
|
||||
print(textIndex);
|
||||
print("YIPPEE KAYAYYYY!");
|
||||
print("YIPPEE KAYAYYYY!");
|
||||
if (itemType === "song") {
|
||||
if (textIndex === 0) {
|
||||
previewSlide.text = root.text[textIndex];
|
||||
|
|
|
@ -24,9 +24,9 @@ Window {
|
|||
Presenter.Slide {
|
||||
id: presentationSlide
|
||||
anchors.fill: parent
|
||||
imageSource: imageBackground
|
||||
videoSource: videoBackground
|
||||
text: currentText
|
||||
imageSource: SlideObject.imageBackground
|
||||
videoSource: SlideObject.videoBackground
|
||||
text: SlideObject.text
|
||||
|
||||
Component.onCompleted: slideItem = presentationSlide
|
||||
}
|
||||
|
|
|
@ -17,8 +17,8 @@ Item {
|
|||
// These properties are for the slides visuals
|
||||
property real textSize: 50
|
||||
property bool dropShadow: false
|
||||
property url imageSource: imageBackground
|
||||
property url videoSource: videoBackground
|
||||
property url imageSource
|
||||
property url videoSource
|
||||
property string chosenFont: "Quicksand"
|
||||
property string text: "This is demo text"
|
||||
property color backgroundColor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue