fix bug: changing video backgrounds don't properly show up in ui

This commit is contained in:
Chris Cochrun 2023-11-20 12:45:57 -06:00
parent a1ecfaaef9
commit f582c5464e
3 changed files with 12 additions and 3 deletions

View file

@ -71,11 +71,12 @@ Controls.Page {
anchors.fill: parent
handle: Item {
implicitWidth: Kirigami.Units.gridUnit / 2
Rectangle {
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width / 4
color: area.containsMouse ? Kirigami.Theme.hoverColor : "#00000000"
color: Qt.lighter(Kirigami.Theme.backgroundColor)
}
MouseArea {

View file

@ -85,6 +85,14 @@ Item {
function playPauseVideo() {
representation.playPauseVideo();
}
Connections {
target: songEditorModel
function onBackgroundChanged() {
console.log("BG CHANGED: Load video or clear it");
representation.loadVideo();
}
}
}
Kirigami.WheelHandler {