mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Reader: remove unused code from Configuration
This commit is contained in:
parent
39ab598363
commit
eb9075c917
@ -11,8 +11,6 @@
|
||||
|
||||
Configuration::Configuration()
|
||||
{
|
||||
//read configuration
|
||||
//load("/YACReader.conf");
|
||||
}
|
||||
|
||||
QSettings *Configuration::getSettings()
|
||||
@ -20,11 +18,6 @@ QSettings *Configuration::getSettings()
|
||||
return settings;
|
||||
}
|
||||
|
||||
/*Configuration::Configuration(const Configuration & conf)
|
||||
{
|
||||
//nothing
|
||||
}*/
|
||||
|
||||
void Configuration::load(QSettings *settings)
|
||||
{
|
||||
this->settings = settings;
|
||||
|
@ -22,34 +22,14 @@ class Configuration : public QObject
|
||||
private:
|
||||
QSettings *settings;
|
||||
|
||||
QString defaultPath;
|
||||
//configuration properties
|
||||
QSize magnifyingGlassSize;
|
||||
QSize gotoSlideSize;
|
||||
float zoomLevel;
|
||||
bool adjustToWidth;
|
||||
bool fullScreen;
|
||||
FlowType flowType;
|
||||
float fitToWidthRatio;
|
||||
QPoint windowPos;
|
||||
QSize windowSize;
|
||||
bool maximized;
|
||||
bool doublePage;
|
||||
bool doubleMangaPage;
|
||||
bool alwaysOnTop;
|
||||
bool adjustToFullSize;
|
||||
QColor backgroundColor;
|
||||
|
||||
Configuration();
|
||||
//Configuration(const Configuration & conf);
|
||||
void load(const QString &path = CONF_FILE_PATH);
|
||||
|
||||
public:
|
||||
static Configuration &getConfiguration()
|
||||
{
|
||||
static Configuration configuration;
|
||||
return configuration;
|
||||
};
|
||||
}
|
||||
QSettings *getSettings();
|
||||
void load(QSettings *settings);
|
||||
QString getDefaultPath() { return settings->value(PATH).toString(); }
|
||||
|
Loading…
Reference in New Issue
Block a user