mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
This reduces boilerplate code and remove the ThemeManager dependency at Thamable subclasses level.
31 lines
664 B
C++
31 lines
664 B
C++
#ifndef SEARCH_VOLUME_H
|
|
#define SEARCH_VOLUME_H
|
|
|
|
#include <QtWidgets>
|
|
#include "scraper_checkbox.h"
|
|
#include "themable.h"
|
|
|
|
class ScraperLineEdit;
|
|
class ScraperCheckBox;
|
|
|
|
class SearchVolume : public QWidget, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SearchVolume(QWidget *parent = nullptr);
|
|
void clean();
|
|
void setVolumeInfo(const QString &volume);
|
|
QString getVolumeInfo() const;
|
|
bool getExactMatch() const { return exactMatchCheckBox->isChecked(); }
|
|
|
|
private:
|
|
ScraperLineEdit *volumeEdit;
|
|
ScraperCheckBox *exactMatchCheckBox;
|
|
QLabel *label;
|
|
|
|
protected:
|
|
void applyTheme(const Theme &theme) override;
|
|
};
|
|
|
|
#endif // SEARCH_VOLUME_H
|