Fix image loading slowness

Images are now loaded in another thread
This commit is contained in:
hemirt
2017-10-08 15:18:47 +02:00
committed by pajlada
parent 369b7c052b
commit e7e4ab768b
5 changed files with 176 additions and 61 deletions
+6 -1
View File
@@ -10,7 +10,9 @@ class WindowManager;
namespace messages {
class LazyLoadedImage : QObject
class ImageLoaderManager;
class LazyLoadedImage : public QObject
{
public:
LazyLoadedImage() = delete;
@@ -64,6 +66,9 @@ private:
void loadImage();
void gifUpdateTimout();
//static ImageLoaderManager imageLoader;
friend class ImageLoaderWorker;
};
} // namespace messages