aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/Browser.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-16 14:59:08 -0400
committerKen Moore <ken@ixsystems.com>2017-06-16 14:59:08 -0400
commit6169281e880cdf64f24876babd4a0be13bb21a6e (patch)
tree71eed97a8da195d5c126ea08329dffc20cc675b7 /src-qt5/desktop-utils/lumina-fm/Browser.h
parentMinor debugging change in lumina-fm (diff)
downloadlumina-6169281e880cdf64f24876babd4a0be13bb21a6e.tar.gz
lumina-6169281e880cdf64f24876babd4a0be13bb21a6e.tar.bz2
lumina-6169281e880cdf64f24876babd4a0be13bb21a6e.zip
Speed up the loading of thumbnails in lumina-fm. Now all the scaling and such is done in the external thread - so images appear as they are ready instead of bogging down the main thread..
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/Browser.h')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/Browser.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/Browser.h b/src-qt5/desktop-utils/lumina-fm/Browser.h
index b96a7281..40e98753 100644
--- a/src-qt5/desktop-utils/lumina-fm/Browser.h
+++ b/src-qt5/desktop-utils/lumina-fm/Browser.h
@@ -46,7 +46,6 @@ private:
bool showHidden, showThumbs;
QStringList imageFormats, oldFiles;
QHash<QString, QIcon> mimeIcons; //cache for quickly re-using QIcons
-
void loadItem(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
@@ -55,7 +54,7 @@ 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, QByteArray);
+ void futureFinished(QString, QImage);
public slots:
void loadDirectory(QString dir = "");
@@ -70,7 +69,7 @@ signals:
void itemsLoading(int); //number of items which are getting loaded
//Internal signal for the alternate threads
- void threadDone(QString, QByteArray);
+ void threadDone(QString, QImage);
};
#endif
bgstack15