blob: 82e7f2e20a1b7cd4eb8f4b807d263f60c8d8fcf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef WCOVERARTLABEL_H
#define WCOVERARTLABEL_H
#include <QLabel>
#include <QMouseEvent>
#include <QWidget>
#include <QPixmap>
#include "dlgcoverartfullsize.h"
#include "widget/wcoverartmenu.h"
class WCoverArtLabel : public QLabel {
Q_OBJECT
public:
WCoverArtLabel(QWidget* parent = 0);
virtual ~WCoverArtLabel();
void setCoverArt(TrackPointer track, CoverInfo info, QPixmap px);
signals:
void coverLocationUpdated(const QString& newLocation,
const QString& oldLocation,
QPixmap newCover);
protected:
void leaveEvent(QEvent*);
void mousePressEvent(QMouseEvent* event);
private slots:
void slotCoverMenu(const QPoint& pos);
private:
TrackPointer m_pTrack;
CoverInfo m_coverInfo;
WCoverArtMenu* m_pCoverMenu;
DlgCoverArtFullSize* m_pDlgFullSize;
QPixmap m_defaultCover;
};
#endif // WCOVERARTLABEL_H
|