making songs have a list of slides visible to assist in editing

This commit is contained in:
Chris Cochrun 2022-04-26 13:10:26 -05:00
parent ceefbebe23
commit 39fc19dff2
4 changed files with 78 additions and 26 deletions

View file

@ -34,6 +34,9 @@ Item {
property string itemType
property bool preview: false
implicitWidth: 1920
implicitHeight: 1080
Rectangle {
id: basePrColor
anchors.fill: parent
@ -59,12 +62,12 @@ Item {
id: playArea
anchors.fill: parent
enabled: editMode
onPressed: mpv.loadFile(videoSource.toString());
onPressed: mpv.playPause();
cursorShape: preview ? Qt.ArrowCursor : Qt.BlankCursor
}
Controls.ProgressBar {
anchors.centerIn: parent
anchors.top: parent.bottom
visible: editMode
width: parent.width - 400
value: mpv.position
@ -74,13 +77,24 @@ Item {
Timer {
id: mpvLoadingTimer
interval: 2
interval: 100
onTriggered: {
/* showPassiveNotification("YIPPEEE!") */
mpv.loadFile(videoSource.toString());
if (preview) {
print("WHY AREN'T YOU PASUING!");
pauseTimer.restart();
}
blackTimer.restart();
}
}
Timer {
id: pauseTimer
interval: 200
onTriggered: mpv.pause()
}
Timer {
id: blackTimer
interval: 400