added a non-functioning video control to presenter
This commit is contained in:
parent
db73165b63
commit
e1ce631b16
2 changed files with 37 additions and 0 deletions
|
@ -104,6 +104,42 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
spacing: 2
|
||||
Layout.preferredWidth: previewSlide.width - 50
|
||||
/* Layout.columnSpan: 3 */
|
||||
Kirigami.Icon {
|
||||
source: previewSlide.mpvIsPlaying ? "media-pause" : "media-play"
|
||||
Layout.preferredWidth: 25
|
||||
Layout.preferredHeight: 25
|
||||
visible: itemType === "video";
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onPressed: print("pressed play/plause");
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
}
|
||||
}
|
||||
Controls.Slider {
|
||||
id: videoSlider
|
||||
visible: itemType === "video";
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 25
|
||||
from: 0
|
||||
to: previewSlide.mpvDuration
|
||||
value: previewSlide.mpvPosition
|
||||
live: true
|
||||
onMoved: print("moved slider");
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Item {
|
||||
/* Layout.preferredHeight: 200 */
|
||||
Layout.fillHeight: true
|
||||
|
|
|
@ -29,6 +29,7 @@ Item {
|
|||
property int mpvPosition: mpv.position
|
||||
property int mpvDuration: mpv.duration
|
||||
property var mpvLoop: mpv.getProperty("loop")
|
||||
property bool mpvIsPlaying: mpv.isPlaying
|
||||
|
||||
// These properties help to determine the state of the slide
|
||||
property string itemType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue