fixing some small bugs
This commit is contained in:
parent
c35c0f6550
commit
5a1fa3fc75
5 changed files with 12 additions and 7 deletions
|
@ -502,7 +502,7 @@ void MpvObject::playPause()
|
|||
|
||||
void MpvObject::stop()
|
||||
{
|
||||
command(QVariantList() << "stop" << "keep-playlist");
|
||||
command(QVariantList() << "stop");
|
||||
}
|
||||
|
||||
void MpvObject::stepBackward()
|
||||
|
|
|
@ -110,7 +110,7 @@ Item {
|
|||
Kirigami.ActionToolBar {
|
||||
height: 40
|
||||
width: parent.width
|
||||
display: Button.IconOnly
|
||||
display: Controls.Button.IconOnly
|
||||
visible: selectedLibrary == "songs"
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
|
@ -455,7 +455,6 @@ Item {
|
|||
else{
|
||||
videoLibraryList.currentIndex = index
|
||||
const video = videosqlmodel.getVideo(videoLibraryList.currentIndex);
|
||||
/* showPassiveNotification("selected video: " + video); */
|
||||
if (!editMode)
|
||||
editMode = true;
|
||||
editSwitch("video", video);
|
||||
|
@ -673,6 +672,7 @@ Item {
|
|||
editMode = true;
|
||||
editSwitch("video", video);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
|
|
@ -84,6 +84,7 @@ Controls.Page {
|
|||
id: videoEditorComp
|
||||
Presenter.VideoEditor {
|
||||
id: videoEditor
|
||||
Controls.StackView.onDeactivating: prePop()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -226,12 +227,15 @@ Controls.Page {
|
|||
if (editMode) {
|
||||
switch (editType) {
|
||||
case "song" :
|
||||
mainPageArea.pop(Controls.StackView.Immediate);
|
||||
mainPageArea.push(songEditorComp, Controls.StackView.Immediate);
|
||||
break;
|
||||
case "video" :
|
||||
mainPageArea.pop(Controls.StackView.Immediate);
|
||||
mainPageArea.push(videoEditorComp, {"video": item}, Controls.StackView.Immediate);
|
||||
break;
|
||||
case "image" :
|
||||
mainPageArea.pop(Controls.StackView.Immediate);
|
||||
mainPageArea.push(imageEditorComp, Controls.StackView.Immediate);
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -87,7 +87,7 @@ Item {
|
|||
border.color: Kirigami.Theme.activeBackgroundColor
|
||||
border.width: 2
|
||||
}
|
||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
||||
closePolicy: Controls.Popup.CloseOnEscape | Controls.Popup.CloseOnPressOutsideParent
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
Controls.ToolButton {
|
||||
|
@ -171,7 +171,6 @@ Item {
|
|||
onFileLoaded: {
|
||||
showPassiveNotification(video.title + " has been loaded");
|
||||
videoPreview.pause();
|
||||
/* showPassiveNotification(mpv.getProperty("loop")); */
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
|
@ -202,7 +201,7 @@ Item {
|
|||
from: 0
|
||||
to: videoPreview.duration
|
||||
/* value: videoPreview.postion */
|
||||
live: false
|
||||
live: true
|
||||
onMoved: videoPreview.seek(value);
|
||||
}
|
||||
}
|
||||
|
@ -224,4 +223,6 @@ Item {
|
|||
/* showPassiveNotification(video[0]); */
|
||||
}
|
||||
}
|
||||
|
||||
function prePop() { videoPreview.stop() }
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ void VideoSqlModel::updateFilePath(const int &row, const QUrl &filePath) {
|
|||
QVariantList VideoSqlModel::getVideo(const int &row) {
|
||||
qDebug() << "Row we are getting is " << row;
|
||||
QVariantList video;
|
||||
QSqlRecord rec = record(row - 1);
|
||||
QSqlRecord rec = record(row);
|
||||
qDebug() << rec.value("title");
|
||||
video.append(rec.value("title"));
|
||||
video.append(rec.value("filePath"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue