Put setting loading in a slot so it can be used at startup and when
preferences change
This commit is contained in:
parent
929a099760
commit
1b9c0adaa8
2 changed files with 33 additions and 22 deletions
|
@ -50,6 +50,15 @@ class DanbooruConnectWidget;
|
|||
class DanbooruMainWindow : public KXmlGuiWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
QQuickWidget *m_view;
|
||||
DanbooruPostModel *m_model;
|
||||
DanbooruService *m_service;
|
||||
DanbooruConnectWidget *m_connectWidget;
|
||||
KImageCache *m_cache;
|
||||
static QHash<int, DanbooruPost::Rating> ratingMap;
|
||||
|
||||
public:
|
||||
/**
|
||||
* Default Constructor
|
||||
|
@ -61,22 +70,19 @@ public:
|
|||
*/
|
||||
virtual ~DanbooruMainWindow();
|
||||
|
||||
private Q_SLOTS:
|
||||
void connectToBoard();
|
||||
void downloadPosts();
|
||||
void optionsPreferences();
|
||||
|
||||
private:
|
||||
void setupActions();
|
||||
void setupConnections();
|
||||
|
||||
private:
|
||||
QQuickWidget *m_view;
|
||||
DanbooruPostModel *m_model;
|
||||
DanbooruService *m_service;
|
||||
DanbooruConnectWidget *m_connectWidget;
|
||||
KImageCache *m_cache;
|
||||
static QHash<int, DanbooruPost::Rating> ratingMap;
|
||||
private Q_SLOTS:
|
||||
void connectToBoard();
|
||||
void downloadPosts();
|
||||
void optionsPreferences();
|
||||
void loadSettings();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
} // namespace Danbooru
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue