mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
#include "series_question.h"
|
|
|
|
#include <QLabel>
|
|
#include <QRadioButton>
|
|
#include <QVBoxLayout>
|
|
|
|
SeriesQuestion::SeriesQuestion(QWidget *parent)
|
|
: QWidget(parent)
|
|
{
|
|
auto l = new QVBoxLayout;
|
|
|
|
questionLabel = new QLabel(tr("You are trying to get information for various comics at once, are they part of the same series?"));
|
|
yes = new QRadioButton(tr("yes"));
|
|
no = new QRadioButton(tr("no"));
|
|
|
|
yes->setChecked(true);
|
|
|
|
l->addSpacing(35);
|
|
l->addWidget(questionLabel);
|
|
l->addWidget(yes);
|
|
l->addWidget(no);
|
|
l->addStretch();
|
|
|
|
l->setContentsMargins(0, 0, 0, 0);
|
|
setLayout(l);
|
|
setContentsMargins(0, 0, 0, 0);
|
|
|
|
initTheme(this);
|
|
}
|
|
|
|
bool SeriesQuestion::getYes()
|
|
{
|
|
return yes->isChecked();
|
|
}
|
|
|
|
void SeriesQuestion::setYes(bool y)
|
|
{
|
|
yes->setChecked(y);
|
|
}
|
|
|
|
void SeriesQuestion::applyTheme(const Theme &theme)
|
|
{
|
|
auto metadataScraperDialogTheme = theme.metadataScraperDialog;
|
|
|
|
questionLabel->setStyleSheet(metadataScraperDialogTheme.defaultLabelQSS);
|
|
yes->setStyleSheet(metadataScraperDialogTheme.radioButtonQSS);
|
|
no->setStyleSheet(metadataScraperDialogTheme.radioButtonQSS);
|
|
}
|