Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Add button in video track header to configure thumbnail display (switch...

Add button in video track header to configure thumbnail display (switch between in/out thumbnails, all thumbnails or no thumbnails)
parent fd8efe13
......@@ -18,7 +18,7 @@ Row {
// 2: will display start / end thumbs
// container.width / thumbRow.thumbWidth will display all frames showThumbnails
// 0: will disable thumbnails
model: 2 // container.width / thumbRow.thumbWidth
model: parentTrack.thumbsFormat == 0 ? 2 : parentTrack.thumbsFormat == 1 ? container.width / thumbRow.thumbWidth : 0
property int startFrame: clipRoot.inPoint
property int endFrame: clipRoot.outPoint
property real imageWidth: container.width / thumbRepeater.count
......
......@@ -30,6 +30,7 @@ Column{
property bool isCurrentTrack: false
property bool isLocked: false
property int trackId : -42
property int thumbsFormat: 0
height: parent.height
SystemPalette { id: activePalette }
......
......@@ -203,6 +203,15 @@ Rectangle {
Layout.fillWidth: true
Layout.fillHeight: true
}
ToolButton {
id: thumbsButton
visible: !isAudio
implicitHeight: trackHeadRoot.iconSize
implicitWidth: trackHeadRoot.iconSize
iconName: 'view-preview'
onClicked: root.cycleTrackThumbs(trackId)
tooltip: i18n('Thumbnails type')
}
ToolButton {
id: muteButton
implicitHeight: trackHeadRoot.iconSize
......
......@@ -157,6 +157,11 @@ Rectangle {
}
}
function cycleTrackThumbs(trackId) {
var track = Logic.getTrackById(trackId)
track.thumbsFormat = track.thumbsFormat < 2 ? track.thumbsFormat + 1 : 0
}
DropArea { //Drop area for compositions
width: root.width - headerWidth
height: root.height - ruler.height
......
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