summaryrefslogtreecommitdiffstats
path: root/src/library/basetrackcache.cpp
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-06-01 16:27:21 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-06-05 13:25:18 +0200
commitf6ba1d4b676dfce45b691be6f1a6a282d982a6ab (patch)
tree30a72e491247a95d59f7d5b8f8f4d5dcb3285c48 /src/library/basetrackcache.cpp
parentadd4b1731eff61e0a4662f25e9469e02999dd8af (diff)
Add (background) color to cover art
Diffstat (limited to 'src/library/basetrackcache.cpp')
-rw-r--r--src/library/basetrackcache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library/basetrackcache.cpp b/src/library/basetrackcache.cpp
index ba9b0503a1..c2dcfc95bf 100644
--- a/src/library/basetrackcache.cpp
+++ b/src/library/basetrackcache.cpp
@@ -413,6 +413,8 @@ void BaseTrackCache::getTrackValueForColumn(TrackPointer pTrack,
// For sorting, we give COLUMN_LIBRARYTABLE_COVERART the same value as
// the cover hash.
trackValue.setValue(pTrack->getCoverInfo().imageHash());
+ } else if (fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART_COLOR) == column) {
+ trackValue.setValue(mixxx::RgbColor::toQVariant(pTrack->getCoverInfo().color));
} else if (fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART_DIGEST) == column) {
trackValue.setValue(pTrack->getCoverInfo().imageDigest());
} else if (fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART_SOURCE) == column) {