recycled the old fit to witdh slider into a zoom slider

This commit is contained in:
Luis Ángel San Martín
2015-12-08 23:13:56 +01:00
parent b11a50cf44
commit bbc2861ee5
7 changed files with 73 additions and 69 deletions

View File

@ -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);