mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Move FitMode to configuration.h
This commit is contained in:
parent
7db47f9147
commit
257436c040
@ -1,5 +1,6 @@
|
|||||||
#ifndef __CONFIGURATION_H
|
#ifndef __CONFIGURATION_H
|
||||||
#define __CONFIGURATION_H
|
#define __CONFIGURATION_H
|
||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QSize>
|
#include <QSize>
|
||||||
@ -15,6 +16,16 @@
|
|||||||
|
|
||||||
using namespace YACReader;
|
using namespace YACReader;
|
||||||
|
|
||||||
|
namespace YACReader {
|
||||||
|
|
||||||
|
enum FitMode {
|
||||||
|
ToWidth = 0x01,
|
||||||
|
ToHeight = 0x02,
|
||||||
|
FullRes = 0x03,
|
||||||
|
FullPage = 0x04 //,
|
||||||
|
// Text=0x05
|
||||||
|
};
|
||||||
|
|
||||||
class Configuration : public QObject
|
class Configuration : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -85,6 +96,7 @@ public:
|
|||||||
bool getUseSingleScrollStepToTurnPage() { return settings->value(USE_SINGLE_SCROLL_STEP_TO_TURN_PAGE, false).toBool(); }
|
bool getUseSingleScrollStepToTurnPage() { return settings->value(USE_SINGLE_SCROLL_STEP_TO_TURN_PAGE, false).toBool(); }
|
||||||
void setDisableScrollAnimation(bool b) { settings->setValue(DISABLE_SCROLL_ANIMATION, b); }
|
void setDisableScrollAnimation(bool b) { settings->setValue(DISABLE_SCROLL_ANIMATION, b); }
|
||||||
bool getDisableScrollAnimation()
|
bool getDisableScrollAnimation()
|
||||||
|
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
auto defaultValue = true;
|
auto defaultValue = true;
|
||||||
@ -96,4 +108,6 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -97,14 +97,6 @@ enum ComicsViewStatus {
|
|||||||
Info
|
Info
|
||||||
};
|
};
|
||||||
|
|
||||||
enum FitMode {
|
|
||||||
ToWidth = 0x01,
|
|
||||||
ToHeight = 0x02,
|
|
||||||
FullRes = 0x03,
|
|
||||||
FullPage = 0x04 //,
|
|
||||||
// Text=0x05
|
|
||||||
};
|
|
||||||
|
|
||||||
enum LibraryUITheme {
|
enum LibraryUITheme {
|
||||||
Light,
|
Light,
|
||||||
Dark
|
Dark
|
||||||
|
Loading…
Reference in New Issue
Block a user