Merge pull request #163 from YACReader/develop

9.7.1 Release
This commit is contained in:
Luis Ángel San Martín 2020-09-12 14:10:13 +02:00 committed by GitHub
commit 6b50542747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 6 deletions

View File

@ -6,7 +6,13 @@ spanish only. Sorry for the mess.
Version counting is based on semantic versioning (Major.Feature.Patch)
## 9.7.0 (unreleased)
## WIP
## 9.7.1
### YACReader
* Fix enlargement/stretching default value
## 9.7.0
### YACReader
* Image enlargement/stretching can now be disabled for fit
to width and height

View File

@ -64,6 +64,8 @@ public:
void setDoublePage(bool b) { settings->setValue(DOUBLE_PAGE, b); }
bool getDoubleMangaPage() { return settings->value(DOUBLE_MANGA_PAGE).toBool(); }
void setDoubleMangaPage(bool b) { settings->setValue(DOUBLE_MANGA_PAGE, b); }
bool getEnlargeImages() { return settings->value(ENLARGE_IMAGES, true).toBool(); }
void setEnlargeImages(bool b) { settings->setValue(ENLARGE_IMAGES, b); }
QColor getBackgroundColor() { return settings->value(BACKGROUND_COLOR).value<QColor>(); }
void setBackgroundColor(const QColor &color) { settings->value(BACKGROUND_COLOR, color); }

View File

@ -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());
});

View File

@ -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).toBool();
bool stretchImages = Configuration::getConfiguration().getEnlargeImages();
YACReader::FitMode fitmode = Configuration::getConfiguration().getFitMode();
switch (fitmode) {
case YACReader::FitMode::FullRes:

View File

@ -3,7 +3,7 @@
#include <QStandardPaths>
#define VERSION "9.7.0"
#define VERSION "9.7.1"
#define REMOTE_BROWSE_PERFORMANCE_WORKAROUND "REMOTE_BROWSE_PERFORMANCE_WORKAROUND"

View File

@ -32,6 +32,7 @@
#define SHOW_INFO "SHOW_INFO"
#define QUICK_NAVI_MODE "QUICK_NAVI_MODE"
#define DISABLE_MOUSE_OVER_GOTO_FLOW "DISABLE_MOUSE_OVER_GOTO_FLOW"
#define ENLARGE_IMAGES "ENLARGE_IMAGES"
#define FLOW_TYPE_GL "FLOW_TYPE_GL"
#define Y_POSITION "Y_POSITION"
@ -70,8 +71,6 @@
#define USE_SELECTED_COMIC_COVER_AS_BACKGROUND_IMAGE_IN_GRID_VIEW "USE_SELECTED_COMIC_COVER_AS_BACKGROUND_IMAGE_IN_GRID_VIEW"
#define DISPLAY_CONTINUE_READING_IN_GRID_VIEW "DISPLAY_CONTINUE_READING_IN_GRID_VIEW"
#define ENLARGE_IMAGES "ENLARGE_IMAGES"
namespace YACReader {
static const QString YACReaderLibrarComiscSelectionMimeDataFormat = "application/yacreaderlibrary-comics-ids";