some small tweaks to the rest of the UI of videoEditor
This commit is contained in:
parent
d9836db18e
commit
eb15160201
1 changed files with 29 additions and 38 deletions
|
@ -42,10 +42,11 @@ Item {
|
||||||
|
|
||||||
Controls.CheckBox {
|
Controls.CheckBox {
|
||||||
id: loopCheckBox
|
id: loopCheckBox
|
||||||
Layout.preferredWidth: 300
|
/* Layout.preferredWidth: 300 */
|
||||||
Layout.fillWidth: true
|
/* Layout.fillWidth: true */
|
||||||
Layout.rightMargin: 20
|
Layout.rightMargin: 20
|
||||||
|
|
||||||
|
icon.name: "media-repeat-all"
|
||||||
text: "Repeat"
|
text: "Repeat"
|
||||||
padding: 10
|
padding: 10
|
||||||
checked: video.loop
|
checked: video.loop
|
||||||
|
@ -56,18 +57,12 @@ Item {
|
||||||
|
|
||||||
Item { Layout.fillWidth: true }
|
Item { Layout.fillWidth: true }
|
||||||
Controls.ToolSeparator {}
|
Controls.ToolSeparator {}
|
||||||
Controls.ToolButton {
|
/* Controls.ToolButton { */
|
||||||
text: "Edit Range"
|
/* text: "Effects" */
|
||||||
icon.name: "image-auto-adjust"
|
/* icon.name: "image-auto-adjust" */
|
||||||
hoverEnabled: true
|
/* hoverEnabled: true */
|
||||||
onClicked: editingRange = !editingRange
|
/* onClicked: {} */
|
||||||
}
|
/* } */
|
||||||
Controls.ToolButton {
|
|
||||||
text: "Effects"
|
|
||||||
icon.name: "image-auto-adjust"
|
|
||||||
hoverEnabled: true
|
|
||||||
onClicked: {}
|
|
||||||
}
|
|
||||||
Controls.ToolButton {
|
Controls.ToolButton {
|
||||||
id: fileButton
|
id: fileButton
|
||||||
text: "File"
|
text: "File"
|
||||||
|
@ -199,16 +194,28 @@ Item {
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: parent.width
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
|
|
||||||
Controls.TextField {
|
RowLayout {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: "Start Time: " + new Date(videoLengthSlider.firstVisualPosition * 1000).toISOString().slice(11, 19);
|
Controls.Label {
|
||||||
horizontalAlignment: TextInput.AlignHCenter
|
text: "Start Time:"
|
||||||
|
}
|
||||||
|
Controls.TextField {
|
||||||
|
Layout.preferredWidth: Kirigami.Units.gridUnit * 6
|
||||||
|
text: new Date(videoLengthSlider.firstVisualPosition * 1000).toISOString().slice(11, 19);
|
||||||
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.TextField {
|
RowLayout {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: "End Time: " + new Date(videoLengthSlider.secondVisualPosition * 1000).toISOString().slice(11, 19);
|
Controls.Label {
|
||||||
horizontalAlignment: TextInput.AlignHCenter
|
text: "End Time:"
|
||||||
|
}
|
||||||
|
Controls.TextField {
|
||||||
|
Layout.preferredWidth: Kirigami.Units.gridUnit * 6
|
||||||
|
text: new Date(videoLengthSlider.secondVisualPosition * 1000).toISOString().slice(11, 19);
|
||||||
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -219,23 +226,6 @@ Item {
|
||||||
id: botEmpty
|
id: botEmpty
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.TextArea {
|
|
||||||
id: filePathLabel
|
|
||||||
Layout.alignment: Qt.AlignBottom
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.columnSpan: 2
|
|
||||||
text: "File path: " + video.filePath
|
|
||||||
background: Item{}
|
|
||||||
readOnly: true
|
|
||||||
HoverHandler {
|
|
||||||
id: hoverHandler
|
|
||||||
enabled: false
|
|
||||||
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* } */
|
|
||||||
}
|
}
|
||||||
Timer {
|
Timer {
|
||||||
id: mpvLoadingTimer
|
id: mpvLoadingTimer
|
||||||
|
@ -251,7 +241,8 @@ Item {
|
||||||
console.log(video.startTime);
|
console.log(video.startTime);
|
||||||
console.log(video.endTime);
|
console.log(video.endTime);
|
||||||
mpvLoadingTimer.restart();
|
mpvLoadingTimer.restart();
|
||||||
footerLeftString = "File path: " + video.filePath
|
footerSecondText = video.filePath;
|
||||||
|
footerFirstText = "File path: ";
|
||||||
}
|
}
|
||||||
|
|
||||||
function stop() {
|
function stop() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue