mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 15:35:03 -04:00
Add support for exact match searches
It will be enabled by default.
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
#ifndef SELECT_VOLUME_H
|
||||
#define SELECT_VOLUME_H
|
||||
|
||||
#include "scraper_selector.h"
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "scraper_results_paginator.h"
|
||||
#include "selected_volume_info.h"
|
||||
#include "volume_search_query.h"
|
||||
|
||||
class QLabel;
|
||||
class VolumesModel;
|
||||
@ -14,12 +17,12 @@ class ScraperScrollLabel;
|
||||
class ScraperTableView;
|
||||
class ScraperLineEdit;
|
||||
|
||||
class SelectVolume : public ScraperSelector
|
||||
class SelectVolume : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SelectVolume(QWidget *parent = nullptr);
|
||||
void load(const QString &json, const QString &searchString) override;
|
||||
void load(const QString &json, const VolumeSearchQuery &searchQuery);
|
||||
void clearFilter();
|
||||
virtual ~SelectVolume();
|
||||
|
||||
@ -29,6 +32,13 @@ public slots:
|
||||
void setDescription(const QString &jsonDetail);
|
||||
SelectedVolumeInfo getSelectedVolumeInfo();
|
||||
|
||||
signals:
|
||||
void loadPage(VolumeSearchQuery);
|
||||
|
||||
private slots:
|
||||
void loadNextPage();
|
||||
void loadPreviousPage();
|
||||
|
||||
private:
|
||||
QLabel *cover;
|
||||
ScraperScrollLabel *detailLabel;
|
||||
@ -37,6 +47,8 @@ private:
|
||||
QSortFilterProxyModel *proxyModel;
|
||||
ScraperLineEdit *filterEdit;
|
||||
QString selectedVolumeDescription;
|
||||
VolumeSearchQuery currentSearchQuery;
|
||||
ScraperResultsPaginator *paginator;
|
||||
};
|
||||
|
||||
#endif // SELECT_VOLUME_H
|
||||
|
Reference in New Issue
Block a user