Move FitMode to configuration.h

This commit is contained in:
Luis Ángel San Martín 2025-05-03 15:44:41 +02:00
parent 7db47f9147
commit 257436c040
2 changed files with 14 additions and 8 deletions

View File

@ -1,5 +1,6 @@
#ifndef __CONFIGURATION_H
#define __CONFIGURATION_H
#include <QByteArray>
#include <QString>
#include <QSize>
@ -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

View File

@ -97,14 +97,6 @@ enum ComicsViewStatus {
Info
};
enum FitMode {
ToWidth = 0x01,
ToHeight = 0x02,
FullRes = 0x03,
FullPage = 0x04 //,
// Text=0x05
};
enum LibraryUITheme {
Light,
Dark