From 977acee8a987805a250c0043bd767f9573c5f053 Mon Sep 17 00:00:00 2001 From: be_ Date: Tue, 28 Mar 2017 13:59:59 -0500 Subject: DlgCoverArtFullSize revamp * let DlgCoverArtFullSize have a border * set DlgCoverArtFullSize window title to "Album Artist - Album (Year)" (or Album instead of Album Artist if there is no Album Artist) * let DlgCoverArtFullSize be resized either by dragging the window border or using a mouse scroll wheel * update DlgCoverArtFullSize when cover art is changed * update DlgCoverArtFullSize when track is reloaded * show WCoverArtMenu on right click of DlgCoverArtFullSize * show WCoverArtMenu on right click of WSpinny when the track does not have cover art set * update WSpinny tooltip * don't hide DlgCoverArtFullSize when moving mouse off of WCoverArtLabel --- src/widget/wcoverartlabel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/widget/wcoverartlabel.h') diff --git a/src/widget/wcoverartlabel.h b/src/widget/wcoverartlabel.h index c9138f0107..0864a2e9b5 100644 --- a/src/widget/wcoverartlabel.h +++ b/src/widget/wcoverartlabel.h @@ -6,6 +6,7 @@ #include #include +#include "track/track.h" #include "widget/wcoverartmenu.h" class DlgCoverArtFullSize; @@ -17,13 +18,13 @@ class WCoverArtLabel : public QLabel { ~WCoverArtLabel() override; void setCoverArt(const CoverInfo& coverInfo, QPixmap px); + void loadTrack(TrackPointer pTrack); signals: void coverInfoSelected(const CoverInfo& coverInfo); void reloadCoverArt(); protected: - void leaveEvent(QEvent* /*unused*/) override; void mousePressEvent(QMouseEvent* event) override; private slots: @@ -31,6 +32,7 @@ class WCoverArtLabel : public QLabel { private: QPixmap m_loadedCover; + TrackPointer m_pLoadedTrack; WCoverArtMenu* m_pCoverMenu; DlgCoverArtFullSize* m_pDlgFullSize; QPixmap m_defaultCover; -- cgit v1.2.3