mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Move FitMode to configuration.h
This commit is contained in:
parent
7db47f9147
commit
257436c040
@ -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
|
||||
|
@ -97,14 +97,6 @@ enum ComicsViewStatus {
|
||||
Info
|
||||
};
|
||||
|
||||
enum FitMode {
|
||||
ToWidth = 0x01,
|
||||
ToHeight = 0x02,
|
||||
FullRes = 0x03,
|
||||
FullPage = 0x04 //,
|
||||
// Text=0x05
|
||||
};
|
||||
|
||||
enum LibraryUITheme {
|
||||
Light,
|
||||
Dark
|
||||
|
Loading…
Reference in New Issue
Block a user