|
|
|
@ -220,21 +220,21 @@ MpvObject {
|
|
|
|
if (!playList.canToggleWithMouse || playList.playlistView.count <= 1) {
|
|
|
|
if (!playList.canToggleWithMouse || playList.playlistView.count <= 1) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (playList.position === "right") {
|
|
|
|
// if (playList.position === "right") {
|
|
|
|
if (mouseX > width - 50) {
|
|
|
|
// if (mouseX > width - 50) {
|
|
|
|
playList.state = "visible"
|
|
|
|
// playList.state = "visible"
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (mouseX < width - playList.width - 20) {
|
|
|
|
// if (mouseX < width - playList.width - 20) {
|
|
|
|
playList.state = "hidden"
|
|
|
|
// playList.state = "hidden"
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
if (mouseX < 50) {
|
|
|
|
// if (mouseX < 50) {
|
|
|
|
playList.state = "visible"
|
|
|
|
// playList.state = "visible"
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (mouseX > playList.width + 20) {
|
|
|
|
// if (mouseX > playList.width + 20) {
|
|
|
|
playList.state = "hidden"
|
|
|
|
// playList.state = "hidden"
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onWheel: {
|
|
|
|
onWheel: {
|
|
|
|
@ -251,6 +251,10 @@ MpvObject {
|
|
|
|
|
|
|
|
|
|
|
|
onPressed: {
|
|
|
|
onPressed: {
|
|
|
|
focus = true
|
|
|
|
focus = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Hide play list
|
|
|
|
|
|
|
|
playList.state = "hidden"
|
|
|
|
|
|
|
|
|
|
|
|
if (mouse.button === Qt.LeftButton) {
|
|
|
|
if (mouse.button === Qt.LeftButton) {
|
|
|
|
if (MouseSettings.left) {
|
|
|
|
if (MouseSettings.left) {
|
|
|
|
actions[MouseSettings.left].trigger()
|
|
|
|
actions[MouseSettings.left].trigger()
|
|
|
|
|