making button work

This commit is contained in:
talksik
2023-08-28 09:26:34 -07:00
parent 7797b91553
commit b06c69b7ff
+14 -15
View File
@@ -37,22 +37,21 @@ ApplicationWindow {
height: parent.height - 30 height: parent.height - 30
radius: 8 radius: 8
MouseArea { Button {
id: mousearea id: button
anchors.fill: parent anchors.centerIn: parent
hoverEnabled: true text: "Play"
onEntered: { onClicked: {
parent.opacity = 1.0 text = "Done"
hidetimer.start() console.log("clicked")
}
}
Timer { // if (video.playing) {
id: hidetimer // video.pause()
interval: 5000 // text = "Play"
onTriggered: { // } else {
parent.opacity = 0.0 // video.play()
stop() // text = "Pause"
// }
} }
} }
} }