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.
30 lines
489 B
C++
30 lines
489 B
C++
#ifndef SERIES_QUESTION_H
|
|
#define SERIES_QUESTION_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include "themable.h"
|
|
|
|
class QRadioButton;
|
|
class QLabel;
|
|
|
|
class SeriesQuestion : public QWidget, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SeriesQuestion(QWidget *parent = nullptr);
|
|
bool getYes();
|
|
void setYes(bool yes = true);
|
|
|
|
private:
|
|
QLabel *questionLabel;
|
|
QRadioButton *yes;
|
|
QRadioButton *no;
|
|
|
|
protected:
|
|
void applyTheme(const Theme &theme) override;
|
|
};
|
|
|
|
#endif // SERIES_QUESTION_H
|