From 4739376f5bd18d4862ee23862516ab8f2bf60c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 7 Sep 2020 18:13:55 +0200 Subject: [PATCH] Use new methods --- YACReader/options_dialog.cpp | 2 +- YACReader/viewer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReader/options_dialog.cpp b/YACReader/options_dialog.cpp index e69c727b..92f974ad 100644 --- a/YACReader/options_dialog.cpp +++ b/YACReader/options_dialog.cpp @@ -139,7 +139,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) scaleCheckbox = new QCheckBox(tr("Enlarge images to fit width/height")); connect(scaleCheckbox, &QCheckBox::clicked, [=](bool checked) { - settings->setValue(ENLARGE_IMAGES, checked); + Configuration::getConfiguration().setEnlargeImages(checked); emit(changedImageOptions()); }); diff --git a/YACReader/viewer.cpp b/YACReader/viewer.cpp index eaa96381..dd9e27bd 100644 --- a/YACReader/viewer.cpp +++ b/YACReader/viewer.cpp @@ -317,7 +317,7 @@ void Viewer::updateContentSize() //there is an image to resize if (currentPage != nullptr && !currentPage->isNull()) { QSize pagefit = currentPage->size(); - bool stretchImages = Configuration::getConfiguration().getSettings()->value(ENLARGE_IMAGES, true).toBool(); + bool stretchImages = Configuration::getConfiguration().getEnlargeImages(); YACReader::FitMode fitmode = Configuration::getConfiguration().getFitMode(); switch (fitmode) { case YACReader::FitMode::FullRes: