Commit f5cdfb59 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

fix small issues when adding new metadata tag

directly add when selecting an item in the combobox

add a describing label before the combobox

fix issues with lyrics tag not being properly detected
parent 1b50dd0e
Pipeline #40636 canceled with stage
......@@ -311,6 +311,8 @@ void EditableTrackMetadataModel::fillLyricsDataFromTrack()
{
TrackMetadataModel::fillLyricsDataFromTrack();
validData();
updateExtraMetadata();
}
void EditableTrackMetadataModel::fillDataForNewRadio()
......
......@@ -147,6 +147,19 @@ Window {
Layout.fillWidth: true
}
Label {
text: i18nc("label before button to add new metadata tag", "Add new tag:")
font.weight: Font.Bold
horizontalAlignment: Text.AlignRight
Layout.alignment: Qt.AlignVCenter
Layout.rightMargin: !LayoutMirroring.enabled ? Kirigami.Units.smallSpacing : 0
Layout.leftMargin: LayoutMirroring.enabled ? Kirigami.Units.smallSpacing : 0
Layout.topMargin: Kirigami.Units.smallSpacing * 4
}
ComboBox {
id: selectedField
......@@ -154,19 +167,12 @@ Window {
valueRole: "modelData"
model: realModel.extraMetadata
enabled: realModel.extraMetadata.length
Layout.rightMargin: Kirigami.Units.smallSpacing * 2
}
Button {
Layout.fillHeight: true
Layout.preferredWidth: height
flat: true
display: AbstractButton.IconOnly
icon.name: 'list-add'
Layout.topMargin: Kirigami.Units.smallSpacing * 4
onClicked: realModel.addData(selectedField.currentValue)
onActivated: realModel.addData(selectedField.currentValue)
}
}
}
......
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