aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LVideoLabel.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-10-18 12:10:10 -0400
committerKen Moore <ken@ixsystems.com>2017-10-18 12:10:10 -0400
commite5f8846fd775269314e5be502261284b9183205e (patch)
treeb87c318f16124b4a56daec9cf77baa78727cecf4 /src-qt5/core/libLumina/LVideoLabel.h
parentAnother quick checkpoint for Lumina 2 files. Nothing too spectacular yet - st... (diff)
downloadlumina-e5f8846fd775269314e5be502261284b9183205e.tar.gz
lumina-e5f8846fd775269314e5be502261284b9183205e.tar.bz2
lumina-e5f8846fd775269314e5be502261284b9183205e.zip
Make LVideoLabel thread-safe.
Couple quick fixes for the Browser class in lumina-fm too (minor cleanup).
Diffstat (limited to 'src-qt5/core/libLumina/LVideoLabel.h')
-rw-r--r--src-qt5/core/libLumina/LVideoLabel.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LVideoLabel.h b/src-qt5/core/libLumina/LVideoLabel.h
index fa590e5a..110e3305 100644
--- a/src-qt5/core/libLumina/LVideoLabel.h
+++ b/src-qt5/core/libLumina/LVideoLabel.h
@@ -1,5 +1,5 @@
-#ifndef LVIDEOLABEL_H
-#define LVIDEOLABEL_H
+#ifndef LVIDEOLABEL_H
+#define LVIDEOLABEL_H
#include <QLabel>
#include <QMediaPlayer>
@@ -13,21 +13,26 @@ class LVideoLabel : public QLabel {
LVideoLabel(QString, QWidget* parent=NULL);
~LVideoLabel();
void setShrinkPixmap(bool);
-
+
protected:
void enterEvent(QEvent*);
void leaveEvent(QEvent*);
+
signals:
void rollOver();
void frameReceived(QPixmap);
+
private slots:
+ void initializeBackend();
void stopVideo(QPixmap);
void setDuration(QMediaPlayer::MediaStatus);
+
private:
QMediaPlayer *mediaPlayer;
LVideoSurface *surface;
QPixmap thumbnail;
bool entered;
bool shrink;
+ QString filepath;
};
#endif
bgstack15