mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
undo misplaced changeset
This commit is contained in:
parent
3d3701f0d4
commit
18f936d303
@ -60,12 +60,8 @@ using namespace YACReader;
|
|||||||
void setGotoSlideSize(const QSize & gss) { settings->setValue(GO_TO_FLOW_SIZE,gss);}
|
void setGotoSlideSize(const QSize & gss) { settings->setValue(GO_TO_FLOW_SIZE,gss);}
|
||||||
float getZoomLevel() { return settings->value(ZOOM_LEVEL).toFloat();}
|
float getZoomLevel() { return settings->value(ZOOM_LEVEL).toFloat();}
|
||||||
void setZoomLevel(float zl) { settings->setValue(ZOOM_LEVEL,zl);}
|
void setZoomLevel(float zl) { settings->setValue(ZOOM_LEVEL,zl);}
|
||||||
float getPageZoomLevel() { return settings->value(PAGE_ZOOM_LEVEL).toFloat();}
|
|
||||||
void setPageZoomLevel(float zl) { settings->setValue(PAGE_ZOOM_LEVEL,zl);}
|
|
||||||
bool getAdjustToWidth() {return settings->value(FIT).toBool();}
|
bool getAdjustToWidth() {return settings->value(FIT).toBool();}
|
||||||
void setAdjustToWidth(bool atw=true) {settings->setValue(FIT,atw);}
|
void setAdjustToWidth(bool atw=true) {settings->setValue(FIT,atw);}
|
||||||
bool getFitToPage() {return settings->value(PAGEFIT).toBool();}
|
|
||||||
void setFitToPage(bool b=true) {settings->setValue(PAGEFIT,b);}
|
|
||||||
FlowType getFlowType(){return (FlowType)settings->value(FLOW_TYPE_SW).toInt();}
|
FlowType getFlowType(){return (FlowType)settings->value(FLOW_TYPE_SW).toInt();}
|
||||||
void setFlowType(FlowType type){settings->setValue(FLOW_TYPE_SW,type);}
|
void setFlowType(FlowType type){settings->setValue(FLOW_TYPE_SW,type);}
|
||||||
bool getFullScreen(){return settings->value(FULLSCREEN).toBool();}
|
bool getFullScreen(){return settings->value(FULLSCREEN).toBool();}
|
||||||
|
@ -330,13 +330,7 @@ void Viewer::updateContentSize()
|
|||||||
{
|
{
|
||||||
if(Configuration::getConfiguration().getAdjustToFullSize())
|
if(Configuration::getConfiguration().getAdjustToFullSize())
|
||||||
{
|
{
|
||||||
content->resize(currentPage->size());
|
content->resize(currentPage->width(),currentPage->height());
|
||||||
}
|
|
||||||
else if(Configuration::getConfiguration().getFitToPage())
|
|
||||||
{
|
|
||||||
QSize pagefit=currentPage->size();
|
|
||||||
pagefit.scale(size(), Qt::KeepAspectRatio);
|
|
||||||
content->resize(pagefit);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -363,13 +357,6 @@ void Viewer::updateContentSize()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Configuration::getConfiguration().getPageZoomLevel())
|
|
||||||
{
|
|
||||||
QSize pagesize=content->size();
|
|
||||||
pagesize.scale(content->width()*Configuration::getConfiguration().getPageZoomLevel(), content->height(), Qt::KeepAspectRatio);
|
|
||||||
content->resize(pagesize);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(devicePixelRatio()>1)//only in retina display
|
if(devicePixelRatio()>1)//only in retina display
|
||||||
{
|
{
|
||||||
QPixmap page = currentPage->scaled(content->width()*devicePixelRatio(), content->height()*devicePixelRatio(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
QPixmap page = currentPage->scaled(content->width()*devicePixelRatio(), content->height()*devicePixelRatio(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||||
|
@ -15,12 +15,10 @@
|
|||||||
#define PATH "PATH"
|
#define PATH "PATH"
|
||||||
#define MAG_GLASS_SIZE "MAG_GLASS_SIZE"
|
#define MAG_GLASS_SIZE "MAG_GLASS_SIZE"
|
||||||
#define ZOOM_LEVEL "ZOOM_LEVEL"
|
#define ZOOM_LEVEL "ZOOM_LEVEL"
|
||||||
#define PAGE_ZOOM_LEVEL "PAGE_ZOOM_LEVEL"
|
|
||||||
#define SLIDE_SIZE "SLIDE_SIZE"
|
#define SLIDE_SIZE "SLIDE_SIZE"
|
||||||
#define GO_TO_FLOW_SIZE "GO_TO_FLOW_SIZE"
|
#define GO_TO_FLOW_SIZE "GO_TO_FLOW_SIZE"
|
||||||
#define FLOW_TYPE_SW "FLOW_TYPE_SW"
|
#define FLOW_TYPE_SW "FLOW_TYPE_SW"
|
||||||
#define FIT "FIT"
|
#define FIT "FIT"
|
||||||
#define PAGEFIT "PAGEFIT"
|
|
||||||
#define FLOW_TYPE "FLOW_TYPE"
|
#define FLOW_TYPE "FLOW_TYPE"
|
||||||
#define FULLSCREEN "FULLSCREEN"
|
#define FULLSCREEN "FULLSCREEN"
|
||||||
#define FIT_TO_WIDTH_RATIO "FIT_TO_WIDTH_RATIO"
|
#define FIT_TO_WIDTH_RATIO "FIT_TO_WIDTH_RATIO"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user