mirror of
https://github.com/YACReader/yacreader
synced 2025-07-27 01:15:07 -04:00
recycled the old fit to witdh slider into a zoom slider
This commit is contained in:
@ -386,8 +386,8 @@ void Viewer::increaseZoomFactor()
|
||||
void Viewer::decreaseZoomFactor()
|
||||
{
|
||||
zoom -= 0.1;
|
||||
if (zoom < 0.1)
|
||||
zoom = 0.1;
|
||||
if (zoom < 0.3)
|
||||
zoom = 0.3;
|
||||
updateContentSize();
|
||||
notificationsLabel->setText(QString::number(getZoomFactor()*100)+"%");
|
||||
notificationsLabel->flash();
|
||||
@ -930,6 +930,12 @@ void Viewer::mouseReleaseEvent ( QMouseEvent * event )
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void Viewer::updateZoomRatio(float ratio)
|
||||
{
|
||||
zoom = ratio;
|
||||
updateContentSize();
|
||||
}
|
||||
|
||||
void Viewer::updateConfig(QSettings * settings)
|
||||
{
|
||||
goToFlow->updateConfig(settings);
|
||||
|
Reference in New Issue
Block a user