From 5b955b00cba003c8cf8aeb2d44295c0a63be9c06 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 25 Sep 2015 12:21:44 -0400 Subject: Change how the thumbnails are loaded in lumina-fm. Now it loads the entire directory up front with placeholder icons for image files - then kicks off a background thumbnail process afterwards to gradually convert the placeholders into thumbnails. This allows the user to instantly start to browse/use the directory while the thumbnails are still being loaded (if on a slow system or have tons of large image files to read). --- lumina-fm/widgets/DirWidget.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lumina-fm/widgets/DirWidget.h') diff --git a/lumina-fm/widgets/DirWidget.h b/lumina-fm/widgets/DirWidget.h index be6252ae..5452edf1 100644 --- a/lumina-fm/widgets/DirWidget.h +++ b/lumina-fm/widgets/DirWidget.h @@ -76,8 +76,8 @@ private: Ui::DirWidget *ui; QString ID, CDIR; //unique ID assigned by the parent and the current dir path LFileInfoList CLIST; //current item list (snap or not) - QString normalbasedir, snapbasedir, snaprelpath; //for maintaining direcoty context while moving between snapshots - QStringList snapshots; + QString normalbasedir, snapbasedir, snaprelpath; //for maintaining directory context while moving between snapshots + QStringList snapshots, needThumbs; bool showDetails, showThumbs, canmodify, stopload; //which widget to use for showing items QList listDetails; QMenu *contextMenu; @@ -101,6 +101,9 @@ private: QStringList date_format; private slots: + //Internal loading of thumbnails + void startLoadThumbs(); + //UI BUTTONS/Actions // -- Left Action Buttons void on_tool_act_copy_clicked(); @@ -137,7 +140,7 @@ private slots: //Browser Functions void OpenContextMenu(); void SelectionChanged(); - void startSync(const QString &file); //used internally to collect/pause before updating the dir + void startSync(const QString &file); //used internally to collect/pause before updating the dir signals: //Directory loading/finding signals -- cgit