fix(qt): artist Popular Tracks quality cell mounts the real badge

The PopularTrackRow fork rendered a lone tier word (HI-RES/CD) in a
plain Text while the document has carried qualityDetail all along; it
now mounts the same bare QualityBadgeFull as the shared TrackRow's
quality cell — tier label over the exact bit-depth/rate line. Audit:
every other popular/track list already goes through rows/TrackRow.qml,
so this fork was the only divergent quality cell.

cc
This commit is contained in:
vicrodh committed 2026-08-30 19:55:48 -06:00
1 parent c650856c84
commit 0c28f9e64b
1 file changed
+19 -7
+19 -7
View File
@@ -1331,14 +1331,22 @@ Rectangle {
font.pixelSize: 13 font.pixelSize: 13
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
} }
Text { // The SAME bare badge the shared TrackRow's quality cell mounts
// (rows/TrackRow.qml:1048): tier label stacked over the exact
// "24-bit / 96 kHz" line. This fork used to render a lone tier
// word ("HI-RES") even though the document has carried
// qualityDetail all along.
Item {
width: cols.colQuality width: cols.colQuality
anchors.verticalCenter: parent.verticalCenter height: parent.height
text: row.qualityTier === "hires" ? "HI-RES" : (row.qualityTier === "cd" ? "CD" : "") QualityBadgeFull {
color: theme.textMuted anchors.centerIn: parent
font.pixelSize: 10 tier: row.qualityTier || ""
font.weight: theme.weightBold detail: row.qualityDetail || ""
horizontalAlignment: Text.AlignHCenter showIcon: false
bare: true
maxTextWidth: cols.colQuality
}
} }
// Favorite (live). Reads through the override map so the state // Favorite (live). Reads through the override map so the state
// survives a document republish (see root.localToggles). // survives a document republish (see root.localToggles).
@@ -1959,6 +1967,7 @@ Rectangle {
genre: modelData.genre genre: modelData.genre
year: modelData.year year: modelData.year
qualityTier: modelData.qualityTier qualityTier: modelData.qualityTier
qualityDetail: modelData.qualityDetail || ""
artSource: root.coverMap[modelData.artUrl] || "" artSource: root.coverMap[modelData.artUrl] || ""
// artist_qt `map_release` stamps the pin state on every // artist_qt `map_release` stamps the pin state on every
// release row; SectionRail is the only other reader and // release row; SectionRail is the only other reader and
@@ -2636,6 +2645,7 @@ Rectangle {
genre: root.artist.lastRelease ? root.artist.lastRelease.genre : "" genre: root.artist.lastRelease ? root.artist.lastRelease.genre : ""
year: root.artist.lastRelease ? root.artist.lastRelease.year : "" year: root.artist.lastRelease ? root.artist.lastRelease.year : ""
qualityTier: root.artist.lastRelease ? root.artist.lastRelease.qualityTier : "" qualityTier: root.artist.lastRelease ? root.artist.lastRelease.qualityTier : ""
qualityDetail: root.artist.lastRelease ? (root.artist.lastRelease.qualityDetail || "") : ""
artSource: root.artist.lastRelease ? (root.coverMap[root.artist.lastRelease.artUrl] || "") : "" artSource: root.artist.lastRelease ? (root.coverMap[root.artist.lastRelease.artUrl] || "") : ""
// Same row shape as the release grids (map_release). // Same row shape as the release grids (map_release).
isPinned: root.artist.lastRelease ? root.artist.lastRelease.isPinned === true : false isPinned: root.artist.lastRelease ? root.artist.lastRelease.isPinned === true : false
@@ -2785,6 +2795,7 @@ Rectangle {
genre: modelData.genre genre: modelData.genre
year: modelData.year year: modelData.year
qualityTier: modelData.qualityTier qualityTier: modelData.qualityTier
qualityDetail: modelData.qualityDetail || ""
artSource: root.coverMap[modelData.artUrl] || "" artSource: root.coverMap[modelData.artUrl] || ""
isPinned: modelData.isPinned === true isPinned: modelData.isPinned === true
artworkUrl: modelData.artUrl || "" artworkUrl: modelData.artUrl || ""
@@ -2865,6 +2876,7 @@ Rectangle {
genre: modelData.genre genre: modelData.genre
year: modelData.year year: modelData.year
qualityTier: modelData.qualityTier qualityTier: modelData.qualityTier
qualityDetail: modelData.qualityDetail || ""
artSource: root.coverMap[modelData.imageUrl] || "" artSource: root.coverMap[modelData.imageUrl] || ""
// These rows are LIBRARY feed items (FeedItem), // These rows are LIBRARY feed items (FeedItem),
// not release cards: the remote url is // not release cards: the remote url is