[libdanbooru/danbooruservice] Move thumbnail downloading to a lambda

slot

This greatly reduces complexity and prevents the ugly passing of
properties along the jobs.
This commit is contained in:
Luca Beltrame 2014-10-04 15:36:10 +02:00
parent 66cd4f46d1
commit 3f760a7690
2 changed files with 48 additions and 51 deletions

View file

@ -96,7 +96,7 @@ namespace Danbooru {
QSet<QString> m_blacklist;
DanbooruPost::Ratings m_maxRating;
unsigned int m_currentPosts; // To tell when to quit
unsigned int m_postsToFetch; // To tell when to quit
KImageCache* m_cache; // Pixmap cache