aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/Browser.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2019-01-25 16:15:59 -0500
committerKen Moore <ken@ixsystems.com>2019-01-25 16:15:59 -0500
commitaf49a6bf7bf619a97b22963fc8bf552118d6f6b7 (patch)
treeedcd5200270078e53ab3cdf6f16b1759df34e251 /src-qt5/desktop-utils/lumina-fm/Browser.h
parentFix the usage of standard icons within the browser. (diff)
downloadlumina-af49a6bf7bf619a97b22963fc8bf552118d6f6b7.tar.gz
lumina-af49a6bf7bf619a97b22963fc8bf552118d6f6b7.tar.bz2
lumina-af49a6bf7bf619a97b22963fc8bf552118d6f6b7.zip
Get the thumbnail loader all working again.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/Browser.h')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/Browser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/Browser.h b/src-qt5/desktop-utils/lumina-fm/Browser.h
index 4eb9b6fb..dcd10275 100644
--- a/src-qt5/desktop-utils/lumina-fm/Browser.h
+++ b/src-qt5/desktop-utils/lumina-fm/Browser.h
@@ -20,6 +20,7 @@
#include <LVideoLabel.h>
#include <LuminaXDG.h>
#include <LFileInfo.h>
+#include <QMutex>
class Browser : public QObject{
Q_OBJECT
@@ -43,14 +44,15 @@ private:
QStringList imageFormats, videoFormats, oldFiles, updateList;
QHash<QString, QIcon> mimeIcons; //cache for quickly re-using QIcons
QTimer *updateTimer;
+ QMutex hashMutex;
- void loadItem(QString info, Browser *obj); //this is the main loader class - multiple instances each run in a separate thread
+ void loadItem(const QString info, Browser *obj); //this is the main loader class - multiple instances each run in a separate thread
QIcon* loadIcon(QString icon); //simplification for using/populating the mimIcons cache
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 futureFinished(QString, const QImage* );
+ void futureFinished(const QString, const QImage );
void updateRequested();
public slots:
@@ -66,7 +68,7 @@ signals:
void itemsLoading(int); //number of items which are getting loaded
//Internal signal for the alternate threads
- void threadDone(QString, const QImage*);
+ void threadDone(const QString, const QImage);
};
#endif
bgstack15