Miam-Player  0.8.0
A nice music player
timelabel.h
Go to the documentation of this file.
1 #ifndef TIMELABEL_H
2 #define TIMELABEL_H
3 
4 #include <QLabel>
5 #include "miamcore_global.h"
6 
12 class MIAMCORE_LIBRARY TimeLabel : public QLabel
13 {
14  Q_OBJECT
15 private:
17  int _mode;
18 
20  qint64 _time;
21 
23  qint64 _total;
24 
25 public:
27  explicit TimeLabel(QWidget *parent = nullptr);
28 
30  virtual bool eventFilter(QObject *obj, QEvent *event) override;
31 
32  virtual QSize minimumSizeHint() const override;
33 
34 private slots:
36  void display();
37 
38 public slots:
39  void setTime(qint64 time, qint64 total);
40 
41 signals:
43  void timeChanged();
44 };
45 
46 #endif // TIMELABEL_H
Display up to three modes for the length of a track.
Definition: timelabel.h:12
#define MIAMCORE_LIBRARY
Definition: miamcore_global.h:11