Add tag searching when clicking (broken)
This doesn't work at the moment and I've yet to figure out why...
This commit is contained in:
parent
51792459fb
commit
2623fee54d
2 changed files with 90 additions and 12 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "libdanbooru/danboorupost.h"
|
||||
|
||||
#include <QTableView>
|
||||
#include <QListView>
|
||||
|
||||
#include <kxmlguiwindow.h>
|
||||
#include <KSharedDataCache>
|
||||
|
@ -35,6 +36,7 @@
|
|||
|
||||
class QQuickWidget;
|
||||
|
||||
|
||||
namespace Danbooru
|
||||
{
|
||||
|
||||
|
@ -42,8 +44,10 @@ class DanbooruClientView;
|
|||
class DanbooruService;
|
||||
class DanbooruPostModel;
|
||||
class DanbooruPoolModel;
|
||||
class DanbooruTagModel;
|
||||
class DanbooruConnectWidget;
|
||||
class DanbooruSearchWidget;
|
||||
class DanbooruTagWidget;
|
||||
|
||||
/**
|
||||
* This class serves as the main window for danbooru_client. It handles the
|
||||
|
@ -61,9 +65,11 @@ private:
|
|||
QQuickWidget *m_view;
|
||||
DanbooruPostModel *m_model;
|
||||
DanbooruPoolModel *m_poolModel;
|
||||
DanbooruTagModel *m_tagModel;
|
||||
DanbooruService *m_service;
|
||||
DanbooruConnectWidget *m_connectWidget;
|
||||
DanbooruSearchWidget *m_searchWidget;
|
||||
DanbooruTagWidget *m_tagWidget;
|
||||
QTableView *m_tableView;
|
||||
KImageCache *m_cache;
|
||||
static QHash<int, DanbooruPost::Rating> ratingMap;
|
||||
|
@ -83,6 +89,7 @@ private:
|
|||
void setupActions();
|
||||
void setupDockWidgets();
|
||||
void setupConnections();
|
||||
void clearModels();
|
||||
|
||||
private Q_SLOTS:
|
||||
void connectToBoard();
|
||||
|
@ -90,10 +97,7 @@ private Q_SLOTS:
|
|||
void optionsPreferences();
|
||||
void loadSettings();
|
||||
void slotHandleDownload(const QUrl &url);
|
||||
|
||||
|
||||
|
||||
|
||||
void searchTag(const QModelIndex &index);
|
||||
|
||||
};
|
||||
} // namespace Danbooru
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue