blob: 183074155bdd43767da8a106f4207f9f2e358b97 (
plain) (
blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
|
#ifndef STATUSICONPOPUPWIDGET_H
#define STATUSICONPOPUPWIDGET_H
#include <QFrame>
#include <QWidget>
#include <QGridLayout>
#include "plugins/General/covermanager/coverwidget.h"
class QLabel;
class QTimer;
class StatusIconPopupWidget : public QFrame
{
Q_OBJECT
public:
StatusIconPopupWidget(QWidget * parent = 0);
~StatusIconPopupWidget();
void showInfo(int x, int y, int delay, bool splitFileName); //x,y are tray icon position
protected:
virtual void mousePressEvent(QMouseEvent *);
private:
QString totalTimeString();
QLabel *m_lblTitle;
QLabel *m_lblArtist;
QLabel *m_lblAlbum;
QLabel *m_lblTime;
QGridLayout * gLayout;
QTimer *m_timer;
CoverWidget * m_cover;
QString m_totalTime;
QSpacerItem *m_spacer;
int m_lastTrayX;
int m_lastTrayY;
int m_splitFileName;
private slots:
void updatePosition(int trayx, int trayy);
void updateMetaData();
void updateTime(qint64 elapsed);
};
#endif // STATUSICONPOPUPWIDGET_H
|