mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Use 4 args connect
This commit is contained in:
parent
567c00102d
commit
154f215c38
@ -137,7 +137,7 @@ OptionsDialog::OptionsDialog(QWidget *parent)
|
|||||||
auto scaleBox = new QGroupBox(tr("Fit options"));
|
auto scaleBox = new QGroupBox(tr("Fit options"));
|
||||||
auto scaleLayout = new QVBoxLayout();
|
auto scaleLayout = new QVBoxLayout();
|
||||||
scaleCheckbox = new QCheckBox(tr("Enlarge images to fit width/height"));
|
scaleCheckbox = new QCheckBox(tr("Enlarge images to fit width/height"));
|
||||||
connect(scaleCheckbox, &QCheckBox::clicked,
|
connect(scaleCheckbox, &QCheckBox::clicked, scaleCheckbox,
|
||||||
[=](bool checked) {
|
[=](bool checked) {
|
||||||
Configuration::getConfiguration().setEnlargeImages(checked);
|
Configuration::getConfiguration().setEnlargeImages(checked);
|
||||||
emit changedImageOptions();
|
emit changedImageOptions();
|
||||||
@ -150,7 +150,7 @@ OptionsDialog::OptionsDialog(QWidget *parent)
|
|||||||
auto doublePageBox = new QGroupBox(tr("Double Page options"));
|
auto doublePageBox = new QGroupBox(tr("Double Page options"));
|
||||||
auto doublePageBoxLayout = new QVBoxLayout();
|
auto doublePageBoxLayout = new QVBoxLayout();
|
||||||
coverSPCheckBox = new QCheckBox(tr("Show covers as single page"));
|
coverSPCheckBox = new QCheckBox(tr("Show covers as single page"));
|
||||||
connect(coverSPCheckBox, &QCheckBox::clicked,
|
connect(coverSPCheckBox, &QCheckBox::clicked, coverSPCheckBox,
|
||||||
[=](bool checked) {
|
[=](bool checked) {
|
||||||
settings->setValue(COVER_IS_SP, checked);
|
settings->setValue(COVER_IS_SP, checked);
|
||||||
emit changedImageOptions();
|
emit changedImageOptions();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user