adding backgrounds to preview and changing from left dock

This commit is contained in:
Chris Cochrun 2022-03-10 07:07:25 -06:00
parent 61273e5390
commit 1fa5aa8a0a
5 changed files with 48 additions and 14 deletions

View file

@ -10,7 +10,9 @@ import "./" as Presenter
Item {
id: root
property string text: "GOOD"
property string text
property url imagebackground
property url vidbackground
GridLayout {
anchors.fill: parent
@ -61,22 +63,25 @@ Item {
Kirigami.Icon {
source: "arrow-left"
Layout.preferredWidth: 200
Layout.preferredWidth: 100
Layout.preferredHeight: 200
Layout.alignment: Qt.AlignRight
}
Presenter.Slide {
id: previewSlide
Layout.preferredWidth: 900
Layout.preferredHeight: width / 16 * 9
Layout.alignment: Qt.AlignCenter
textSize: width / 15
text: root.text
imageSource: imagebackground
videoSource: vidbackground
}
Kirigami.Icon {
source: "arrow-right"
Layout.preferredWidth: 200
Layout.preferredWidth: 100
Layout.preferredHeight: 200
Layout.alignment: Qt.AlignLeft
}
@ -89,4 +94,8 @@ Item {
}
}
function loadVideo() {
previewSlide.loadVideo();
}
}