Hook maximum allowed rating into the configuration

I wonder if max posts should be a setter in DanbooruService...
This commit is contained in:
Luca Beltrame 2015-02-12 00:41:21 +01:00
parent 2f8d935dd6
commit e1045e1fa6
2 changed files with 12 additions and 3 deletions

View file

@ -27,6 +27,7 @@
#include <KSharedDataCache>
#include <KImageCache>
#include "libdanbooru/danboorupost.h"
class QQuickWidget;
@ -75,6 +76,7 @@ private:
DanbooruService *m_service;
DanbooruConnectWidget *m_connectWidget;
KImageCache *m_cache;
static QHash<int, DanbooruPost::Rating> ratingMap;
};
} // namespace Danbooru