diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-15 09:42:10 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-15 09:42:10 -0400 |
commit | dfc87d6d2cfd8ffd3274d8a101b2b476faf65ea9 (patch) | |
tree | 3122775cd6aaedd9cb07a9f45af9881a4c0644de /lumina-fm/widgets/DirWidget.h | |
parent | oops - now the "New Tab" item should read "New Browser" (only changed tooltip... (diff) | |
download | lumina-dfc87d6d2cfd8ffd3274d8a101b2b476faf65ea9.tar.gz lumina-dfc87d6d2cfd8ffd3274d8a101b2b476faf65ea9.tar.bz2 lumina-dfc87d6d2cfd8ffd3274d8a101b2b476faf65ea9.zip |
Update the lumina-fm thumbnail loader to run in a *truly* separate thread from the main process using QtConcurrent. This keeps the ui completely interactive while still loading all the images.
Diffstat (limited to 'lumina-fm/widgets/DirWidget.h')
-rw-r--r-- | lumina-fm/widgets/DirWidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-fm/widgets/DirWidget.h b/lumina-fm/widgets/DirWidget.h index f26002af..274873e2 100644 --- a/lumina-fm/widgets/DirWidget.h +++ b/lumina-fm/widgets/DirWidget.h @@ -16,6 +16,7 @@ #include <QShortcut> #include <QFileSystemWatcher> #include <QTimer> +#include <QFuture> #include "../DirData.h" #include "DDListWidgets.h" @@ -33,6 +34,8 @@ public: DirWidget(QString objID, QWidget *parent = 0); //needs a unique ID (to distinguish from other DirWidgets) ~DirWidget(); + void cleanup(); //called before the browser is closed down + //Directory Managment void ChangeDir(QString dirpath); void setDirCompleter(QCompleter *comp); @@ -77,6 +80,7 @@ private: bool showDetails, showThumbs, canmodify, stopload; //which widget to use for showing items QList<DETAILTYPES> listDetails; QMenu *contextMenu; + QFuture<void> thumbThread; //The Toolbar and associated items QToolBar *toolbar; QLineEdit *line_dir; |