Skip to content
Snippets Groups Projects
Commit db2b7ed9 authored by Prince Gupta's avatar Prince Gupta :speech_balloon: Committed by Steve Lhomme
Browse files

qml: fix table view in Album Expand panel view

correctly inherit from expected parent from the row delegate
parent f692cd04
No related branches found
No related tags found
1 merge request!5558qml: fix table view in Album Expand panel view
Pipeline #480380 passed with warnings with stage
in 23 minutes and 35 seconds
......@@ -365,27 +365,29 @@ FocusScope {
readonly property int _nbCols: VLCStyle.gridColumnsForWidth(tracks.availableRowWidth)
property Component titleDelegate: RowLayout {
property var rowModel: parent.rowModel
property Component titleDelegate: Widgets.TableRowDelegate {
id: title
anchors.fill: parent
RowLayout {
anchors.fill: parent
Widgets.ListLabel {
text: rowModel?.track_number ?? ""
color: theme.fg.primary
font.weight: Font.Normal
Widgets.ListLabel {
text: title.rowModel?.track_number ?? ""
color: theme.fg.primary
font.weight: Font.Normal
Layout.fillHeight: true
Layout.leftMargin: VLCStyle.margin_xxsmall
Layout.preferredWidth: VLCStyle.margin_large
}
Layout.fillHeight: true
Layout.leftMargin: VLCStyle.margin_xxsmall
Layout.preferredWidth: VLCStyle.margin_large
}
Widgets.ListLabel {
text: rowModel?.title ?? ""
color: theme.fg.primary
Widgets.ListLabel {
text: title.rowModel?.title ?? ""
color: theme.fg.primary
Layout.fillHeight: true
Layout.fillWidth: true
Layout.fillHeight: true
Layout.fillWidth: true
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment