gave the slide a black to put in front of loading videos
This commit is contained in:
parent
62e1b07ec1
commit
e52d44f937
10 changed files with 136 additions and 12 deletions
|
@ -13,6 +13,7 @@ Item {
|
|||
|
||||
property string imageBackground
|
||||
property string videoBackground
|
||||
property string textAlignment
|
||||
|
||||
Presenter.Slide {
|
||||
id: representation
|
||||
|
@ -23,4 +24,23 @@ Item {
|
|||
videoSource: videoBackground
|
||||
preview: true
|
||||
}
|
||||
|
||||
Component.onCompleted: updateHAlignment(textAlignment)
|
||||
|
||||
function updateHAlignment(alignment) {
|
||||
switch (alignment) {
|
||||
case "left" :
|
||||
representation.horizontalAlignment = Text.AlignLeft;
|
||||
break;
|
||||
case "center" :
|
||||
representation.horizontalAlignment = Text.AlignHCenter;
|
||||
break;
|
||||
case "right" :
|
||||
representation.horizontalAlignment = Text.AlignRight;
|
||||
break;
|
||||
case "justify" :
|
||||
representation.horizontalAlignment = Text.AlignJustify;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue