fix bug: changing video backgrounds don't properly show up in ui
This commit is contained in:
parent
a1ecfaaef9
commit
f582c5464e
3 changed files with 12 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue