mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Change zoom limit from 3x to 5x
This commit is contained in:
parent
81875d74f6
commit
e28b25a76e
|
@ -2615,12 +2615,12 @@ void MainWindow::unzoom()
|
||||||
|
|
||||||
void MainWindow::applyZoomFactor()
|
void MainWindow::applyZoomFactor()
|
||||||
{
|
{
|
||||||
if ( cfg.preferences.zoomFactor >= 3 )
|
if ( cfg.preferences.zoomFactor >= 5 )
|
||||||
cfg.preferences.zoomFactor = 3;
|
cfg.preferences.zoomFactor = 5;
|
||||||
else if ( cfg.preferences.zoomFactor <= 0.7 )
|
else if ( cfg.preferences.zoomFactor <= 0.7 )
|
||||||
cfg.preferences.zoomFactor = 0.7;
|
cfg.preferences.zoomFactor = 0.7;
|
||||||
|
|
||||||
zoomIn->setEnabled( cfg.preferences.zoomFactor < 3 );
|
zoomIn->setEnabled( cfg.preferences.zoomFactor < 5 );
|
||||||
zoomOut->setEnabled( cfg.preferences.zoomFactor > 0.7 );
|
zoomOut->setEnabled( cfg.preferences.zoomFactor > 0.7 );
|
||||||
zoomBase->setEnabled( cfg.preferences.zoomFactor != 1.0 );
|
zoomBase->setEnabled( cfg.preferences.zoomFactor != 1.0 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue