From 74aee7244060e588031735eabae05c47efde48aa Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 15 Nov 2017 08:30:47 -0500 Subject: Split the LFileInfo class into it's own files. --- src-qt5/desktop-utils/lumina-fm/BrowserWidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.h') diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h index b17ad588..b88d8d2e 100644 --- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h +++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h @@ -13,6 +13,7 @@ #include #include +#include #include "Browser.h" #include "widgets/DDListWidgets.h" -- cgit From 55d00fe0de302191307fde6af8e1b291bf6c91a8 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 15 Nov 2017 10:28:13 -0500 Subject: Ensure that the Browser backend is also contained in a background thread. This prevents it from delaying the UI from updating. --- src-qt5/desktop-utils/lumina-fm/BrowserWidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.h') diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h index b88d8d2e..38e7b10c 100644 --- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h +++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h @@ -22,7 +22,7 @@ class BrowserWidget : public QWidget{ Q_OBJECT private: Browser *BROWSER; - //QThread *bThread; //browserThread + QThread *bThread; //browserThread int numItems; //used for checking if all the items have loaded yet QString ID, statustip; QStringList date_format, historyList; -- cgit From cb79fcd0df549da383b989fa5212fefc75d87482 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 15 Nov 2017 11:07:40 -0500 Subject: A bit more background threading magic. Make lumina-fm show dir contents a *lot* faster now. --- src-qt5/desktop-utils/lumina-fm/BrowserWidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.h') diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h index 38e7b10c..2f8c3ed7 100644 --- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h +++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.h @@ -79,6 +79,7 @@ private slots: void itemDataAvailable(QIcon, LFileInfo*); void itemsLoading(int total); void selectionChanged(); + void loadStatistics(BrowserWidget *bw); //designed to be run in a background thread protected: void resizeEvent(QResizeEvent *ev); -- cgit