1
0
Fork 0
VideoPlayer/src/qml/Items/ChapterMarkerItem.qml

24 lines
441 B
QML
Raw Normal View History

import QtQuick 2.0
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()
}
2020-05-06 12:43:01 +01:00
}
}