From 257436c040446912edee85623e5c28887a0cd759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 3 May 2025 15:44:41 +0200 Subject: [PATCH] Move FitMode to configuration.h --- YACReader/configuration.h | 14 ++++++++++++++ common/yacreader_global_gui.h | 8 -------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/YACReader/configuration.h b/YACReader/configuration.h index fe29803e..c47ffd49 100644 --- a/YACReader/configuration.h +++ b/YACReader/configuration.h @@ -1,5 +1,6 @@ #ifndef __CONFIGURATION_H #define __CONFIGURATION_H + #include #include #include @@ -15,6 +16,16 @@ using namespace YACReader; +namespace YACReader { + +enum FitMode { + ToWidth = 0x01, + ToHeight = 0x02, + FullRes = 0x03, + FullPage = 0x04 //, + // Text=0x05 +}; + class Configuration : public QObject { Q_OBJECT @@ -85,6 +96,7 @@ public: bool getUseSingleScrollStepToTurnPage() { return settings->value(USE_SINGLE_SCROLL_STEP_TO_TURN_PAGE, false).toBool(); } void setDisableScrollAnimation(bool b) { settings->setValue(DISABLE_SCROLL_ANIMATION, b); } bool getDisableScrollAnimation() + { #ifdef Q_OS_MACOS auto defaultValue = true; @@ -96,4 +108,6 @@ public: } }; +} + #endif diff --git a/common/yacreader_global_gui.h b/common/yacreader_global_gui.h index 9e9b3b66..b793c136 100644 --- a/common/yacreader_global_gui.h +++ b/common/yacreader_global_gui.h @@ -97,14 +97,6 @@ enum ComicsViewStatus { Info }; -enum FitMode { - ToWidth = 0x01, - ToHeight = 0x02, - FullRes = 0x03, - FullPage = 0x04 //, - // Text=0x05 -}; - enum LibraryUITheme { Light, Dark