aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/Browser.h
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2017-10-16 21:00:07 -0400
committerZackaryWelch <welch.zackary@gmail.com>2017-10-16 21:00:07 -0400
commitcd928a79ff4bf6da55689bc100168355ec962b50 (patch)
tree0c06d52e780936d1fc9bc29ead53876837b94133 /src-qt5/desktop-utils/lumina-fm/Browser.h
parentClean up the session file-init routine. (diff)
downloadlumina-cd928a79ff4bf6da55689bc100168355ec962b50.tar.gz
lumina-cd928a79ff4bf6da55689bc100168355ec962b50.tar.bz2
lumina-cd928a79ff4bf6da55689bc100168355ec962b50.zip
Updated how video thumbnails are loaded. Now cached to stop crash when
resizing.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/Browser.h')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/Browser.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/Browser.h b/src-qt5/desktop-utils/lumina-fm/Browser.h
index 3254db54..0f4a0abe 100644
--- a/src-qt5/desktop-utils/lumina-fm/Browser.h
+++ b/src-qt5/desktop-utils/lumina-fm/Browser.h
@@ -17,6 +17,7 @@
#include <QMediaPlayer>
#include <LVideoSurface.h>
+#include <LVideoLabel.h>
#include <LuminaXDG.h>
/*class FileItem{
public:
@@ -46,7 +47,7 @@ private:
QString currentDir;
QDateTime lastcheck;
QFileSystemWatcher *watcher;
- QList<QString> videoList;
+ QMap<QString, QPixmap> videoImages;
bool showHidden, showThumbs;
QStringList imageFormats, videoFormats, oldFiles;
QHash<QString, QIcon> mimeIcons; //cache for quickly re-using QIcons
@@ -57,8 +58,6 @@ private:
private slots:
void fileChanged(QString); //tied into the watcher - for file change notifications
void dirChanged(QString); // tied into the watcher - for new/removed files in the current dir
- void captureFrame(QPixmap, QIcon*);
- void stopVideo(QMediaPlayer*, QMediaPlayer::MediaStatus);
void futureFinished(QString, QImage);
public slots:
@@ -75,8 +74,6 @@ signals:
//Internal signal for the alternate threads
void threadDone(QString, QImage);
-
- void frameChanged();
};
#endif
bgstack15