mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
commit
6b50542747
@ -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
|
||||
|
@ -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); }
|
||||
|
@ -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());
|
||||
});
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user