main
zhuzihcu 2023-03-31 18:11:55 +08:00
commit d2e3e6dd4b
2 changed files with 10 additions and 7 deletions

View File

@ -18,7 +18,7 @@ Window {
"/chat":"qrc:/page/ChatPage.qml",
"/media":"qrc:/page/MediaPage.qml",
}
FluApp.initialRoute = "/media"
FluApp.initialRoute = "/"
FluApp.run()
}

View File

@ -43,10 +43,9 @@ Rectangle {
onMediaStatusChanged:
(status)=> {
if(status===2){
mediaplayer.play()
}else if(status===5){
slider.maxValue = mediaplayer.duration
showControl = true
mediaplayer.play()
}
}
}
@ -64,14 +63,18 @@ Rectangle {
height: 100
y:showControl ? control.height - 110 : control.height
anchors{
left: parent.left
right: parent.right
leftMargin: 10
rightMargin: 10
horizontalCenter: parent.horizontalCenter
}
width: 460
opacity: showControl
MouseArea{
anchors.fill: parent
}
Behavior on opacity{
NumberAnimation{
duration: 150
}
}
Behavior on y{
NumberAnimation{
duration: 150