From 8b77640653c01b5b5df6c29149fc32265848c482 Mon Sep 17 00:00:00 2001 From: RJ Ryan Date: Mon, 27 Oct 2014 23:47:34 -0400 Subject: Allow segregation of multiple users of CoverArtCache. * Provide a QObject* requestor pointer when calling requestCover. In practice this can be any number you want it to but it is particularly useful for the requestor class to pass a pointer to itself so it can compare the signal it gets to itself. * Provide the original CoverInfo request. --- src/widget/wcoverart.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widget/wcoverart.h') diff --git a/src/widget/wcoverart.h b/src/widget/wcoverart.h index fcd27f725c..eda0778cbe 100644 --- a/src/widget/wcoverart.h +++ b/src/widget/wcoverart.h @@ -32,7 +32,8 @@ class WCoverArt : public QWidget, public WBaseWidget { void trackDropped(QString filename, QString group); private slots: - void slotPixmapFound(int trackId, QPixmap pixmap); + void slotCoverFound(const QObject* pRequestor, const CoverInfo& info, + QPixmap pixmap); void slotCoverArtSelected(const CoverArt& art); void slotTrackCoverArtUpdated(); -- cgit v1.2.3