summaryrefslogtreecommitdiffstats
path: root/src/widget/wcoverartlabel.h
diff options
context:
space:
mode:
authorbe_ <be.0@gmx.com>2017-03-28 13:59:59 -0500
committerbe_ <be.0@gmx.com>2017-03-28 13:59:59 -0500
commit977acee8a987805a250c0043bd767f9573c5f053 (patch)
treeaf085f433ee4fae65d147fd706ade8ff7fd88605 /src/widget/wcoverartlabel.h
parent03557a7a6d2a6717389035fa97a08dd7744d101f (diff)
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
Diffstat (limited to 'src/widget/wcoverartlabel.h')
-rw-r--r--src/widget/wcoverartlabel.h4
1 files changed, 3 insertions, 1 deletions
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 <QWidget>
#include <QPixmap>
+#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;