[vlc-commits] [Git][videolan/vlc][master] qml: fix table view in Album Expand panel view
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jun 13 09:32:37 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
db2b7ed9 by Prince Gupta at 2024-06-13T08:49:01+00:00
qml: fix table view in Album Expand panel view
correctly inherit from expected parent from the row delegate
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
=====================================
@@ -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
+ }
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/db2b7ed92097843919e0ab0833cd31efc6f76e8c
--
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/db2b7ed92097843919e0ab0833cd31efc6f76e8c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list