aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LVideoLabel.h
blob: fd293200f192260a38e67d1cd2510b2dd095bf4a (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
#ifndef LVIDEOLABEL_H 
#define LVIDEOLABEL_H 

#include <QLabel>
#include <QMediaPlayer>
#include "LVideoSurface.h"

//class LVideoSurface;

class LVideoLabel : public QLabel {
  Q_OBJECT
  public:
    LVideoLabel(QString, bool);
    ~LVideoLabel();
  protected:
    void enterEvent(QEvent*);
    void leaveEvent(QEvent*);
  signals:
    void rollOver();
  public slots:
    void stopVideo(QPixmap);
    void setDuration(QMediaPlayer::MediaStatus);
  private:
    QMediaPlayer *mediaPlayer;
    LVideoSurface *surface;
    QVideoWidget *videoPlayer;
    QPixmap thumbnail;
    bool entered;
};
#endif
bgstack15