making button work
This commit is contained in:
@@ -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"
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user