Commit 0c15fe95 authored by Prince Gupta's avatar Prince Gupta 💬 Committed by Jean-Baptiste Kempf
Browse files

qml: show chapter marks on activity in player

parent bafae3cb
......@@ -47,6 +47,10 @@ Widgets.NavigableFocusScope {
signal requestLockUnlockAutoHide(bool lock, var source)
function showChapterMarks() {
trackPositionSlider.showChapterMarks()
}
Keys.priority: Keys.AfterItem
Keys.onPressed: defaultKeyAction(event, 0)
onActionCancel: history.previous()
......
......@@ -501,6 +501,11 @@ Widgets.NavigableFocusScope {
state: "visible"
edge: Widgets.DrawerExt.Edges.Bottom
onStateChanged: {
if (state === "visible")
contentItem.showChapterMarks()
}
component: MouseArea {
id: controllerMouseArea
......@@ -510,6 +515,10 @@ Widgets.NavigableFocusScope {
width: controlBarView.width
hoverEnabled: true
function showChapterMarks() {
controllerId.showChapterMarks()
}
onContainsMouseChanged: rootPlayer.lockUnlockAutoHide(containsMouse, topcontrolView)
ControlBar {
......
......@@ -39,6 +39,11 @@ Slider {
Keys.onRightPressed: player.jumpFwd()
Keys.onLeftPressed: player.jumpBwd()
function showChapterMarks() {
_isSeekPointsShown = true
seekpointTimer.restart()
}
Timer {
id: seekpointTimer
running: player.hasChapters && !control.hovered && _isSeekPointsShown
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment