2018-12-22 14:07:44 +00:00
|
|
|
import QtQuick 2.0
|
2018-11-24 14:35:34 +00:00
|
|
|
|
|
|
|
Rectangle {
|
2020-05-06 12:43:01 +01:00
|
|
|
id: chapterMarker
|
|
|
|
property int time: 0
|
|
|
|
color: getAppearanceValueForTheme(appearance.themeName, "chapterMarkerColor")
|
|
|
|
width: 4
|
|
|
|
height: parent.height
|
|
|
|
x: progressBar.background.width / progressBar.to * time
|
|
|
|
z: 9000
|
|
|
|
anchors {
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
2020-04-24 17:06:14 +01:00
|
|
|
|
2020-05-06 12:43:01 +01:00
|
|
|
Connections {
|
|
|
|
target: player
|
|
|
|
enabled: true
|
|
|
|
onChaptersChanged: {
|
|
|
|
chapterMarker.destroy()
|
2018-11-24 14:35:34 +00:00
|
|
|
}
|
2020-05-06 12:43:01 +01:00
|
|
|
}
|
2018-11-24 14:35:34 +00:00
|
|
|
}
|