import QtQuick 2.0 Item { property double progress:0 // property bool pressflag:false // property bool dragflag:false // property bool barpointflag:true // property string imagePath // signal dragingStart(); // signal dragingEnd(); // x:100 // y:100 // Image{ // id:bg_all // x:0 // y:0 // source: imagePath + "M8X_music_BG_full-screen.png" // } // Image{ // id:bg_r // x:0 // y:0 // source:imagePath + "M8X_music_BG_full-screen_R.png" // } // Image{ // id:pro_l // x:14 // y:14 // source:imagePath + "M8X_music_progress_full-screen_L.png" // } // Image{ // id:bg_l // x:0 // y:0 // source:imagePath + "M8X_music_BG_full-screen_L.png" // } // Image{ // id:pro_r // x:14 // y:14 // source:imagePath + "M8X_music_progress_full-screen_R.png" // visible: false // } // Item{ // id:bar // x:0 // y:0 // width: 386 // height: 386 // visible: barpointflag // Image{ // x:182 // y:12 // source:imagePath + "M8X_music_progress-bar_full-screen.png" // } // } // function pro_ctrl() // { // bar.rotation = progress // if(progress <= 180) // { // pro_r.visible = false // pro_r.rotation = 0 // pro_l.rotation = progress // } // else if(progress >180 && progress <= 360) // { // pro_r.visible = true // pro_l.rotation = 180 // pro_r.rotation = (progress-180) // } // } // HMIMouseArea{ // id:drag // x:0 // y:0 // width: 386 // height: 386 // enabled: dragflag // onMouseXChanged: { // progress = systemCtrlLink.systemRoundBarAngleBig(mouseX,mouseY) // pro_ctrl() // } // onMouseYChanged: { // progress = systemCtrlLink.systemRoundBarAngleBig(mouseX,mouseY) // pro_ctrl() // } // onReleased: { // dragingEnd(); // pressflag = false // } // onPressed: { // dragingStart(); // pressflag = true // } // onCanceled: { // dragingEnd(); // pressflag = false // } // } // onProgressChanged: { // pro_ctrl() // } Rectangle{ id:greyBar x:150 y:849-160 width:660 height:8 color:"#262626" } Rectangle{ id:redBar x:150 y:849-160 width:660*progress height:8 color:"#c80707" } Rectangle{ id:whiteBall x:150+660*progress-width/2 width: 20 height: 20 color: "#ffffff" radius: 180 anchors.verticalCenter:redBar.verticalCenter } }