From cc3d454d60e9134a3b5a7951e56f80fb86c45e5b Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 8 Jul 2019 22:21:12 +0200 Subject: [PATCH] Add lyrics to edit tag dialog --- src/dialogs/edittagdialog.cpp | 2 + src/dialogs/edittagdialog.ui | 330 ++++++++++++++++++---------------- 2 files changed, 177 insertions(+), 155 deletions(-) diff --git a/src/dialogs/edittagdialog.cpp b/src/dialogs/edittagdialog.cpp index 557fbc5a8..0167b8eb7 100644 --- a/src/dialogs/edittagdialog.cpp +++ b/src/dialogs/edittagdialog.cpp @@ -337,6 +337,7 @@ QVariant EditTagDialog::Data::value(const Song &song, const QString &id) { if (id == "grouping") return song.grouping(); if (id == "genre") return song.genre(); if (id == "comment") return song.comment(); + if (id == "lyrics") return song.lyrics(); if (id == "track") return song.track(); if (id == "disc") return song.disc(); if (id == "year") return song.year(); @@ -356,6 +357,7 @@ void EditTagDialog::Data::set_value(const QString &id, const QVariant &value) { else if (id == "grouping") current_.set_grouping(value.toString()); else if (id == "genre") current_.set_genre(value.toString()); else if (id == "comment") current_.set_comment(value.toString()); + else if (id == "lyrics") current_.set_lyrics(value.toString()); else if (id == "track") current_.set_track(value.toInt()); else if (id == "disc") current_.set_disc(value.toInt()); else if (id == "year") current_.set_year(value.toInt()); diff --git a/src/dialogs/edittagdialog.ui b/src/dialogs/edittagdialog.ui index b382f7729..dfec92cae 100644 --- a/src/dialogs/edittagdialog.ui +++ b/src/dialogs/edittagdialog.ui @@ -7,7 +7,7 @@ 0 0 863 - 635 + 645 @@ -30,7 +30,7 @@ - 0 + 1 @@ -545,6 +545,69 @@ Edit tags + + + + Complete tags automatically + + + + :/pictures/musicbrainz.png:/pictures/musicbrainz.png + + + + 38 + 22 + + + + + + + + QAbstractSpinBox::CorrectToNearestValue + + + 9999 + + + false + + + true + + + + + + + Genre + + + genre + + + + + + + true + + + false + + + + + + + true + + + false + + + @@ -555,6 +618,26 @@ + + + + Grouping + + + grouping + + + + + + + Album + + + album + + + @@ -565,6 +648,76 @@ + + + + Disc + + + disc + + + + + + + true + + + false + + + + + + + Album artist + + + albumartist + + + + + + + true + + + false + + + + + + + Composer + + + composer + + + + + + + Comment + + + comment + + + + + + + true + + + false + + + @@ -575,6 +728,16 @@ + + + + true + + + false + + + @@ -601,28 +764,8 @@ - - - - true - - - false - - - - - - - Disc - - - disc - - - - - + + QAbstractSpinBox::CorrectToNearestValue @@ -637,18 +780,8 @@ - - - - Album - - - album - - - - - + + true @@ -667,32 +800,6 @@ - - - - QAbstractSpinBox::CorrectToNearestValue - - - 9999 - - - false - - - true - - - - - - - Album artist - - - albumartist - - - @@ -703,26 +810,6 @@ - - - - Composer - - - composer - - - - - - - true - - - false - - - @@ -733,85 +820,18 @@ - - - - true - - - false - - - - - + + - Grouping + Lyrics - grouping + lyrics - - - - true - - - false - - - - - - - Genre - - - genre - - - - - - - true - - - false - - - - - - - Complete tags automatically - - - - :/pictures/musicbrainz.png:/pictures/musicbrainz.png - - - - 38 - 22 - - - - - - - - Comment - - - comment - - - - - + + true