mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Set the minimum zoom level from 0.7 to 0.1
This commit is contained in:
parent
f595b37fd0
commit
c45bf96701
|
@ -2954,11 +2954,11 @@ void MainWindow::applyZoomFactor()
|
||||||
{
|
{
|
||||||
if ( cfg.preferences.zoomFactor >= 5 )
|
if ( cfg.preferences.zoomFactor >= 5 )
|
||||||
cfg.preferences.zoomFactor = 5;
|
cfg.preferences.zoomFactor = 5;
|
||||||
else if ( cfg.preferences.zoomFactor <= 0.7 )
|
else if ( cfg.preferences.zoomFactor <= 0.1 )
|
||||||
cfg.preferences.zoomFactor = 0.7;
|
cfg.preferences.zoomFactor = 0.1;
|
||||||
|
|
||||||
zoomIn->setEnabled( cfg.preferences.zoomFactor < 5 );
|
zoomIn->setEnabled( cfg.preferences.zoomFactor < 5 );
|
||||||
zoomOut->setEnabled( cfg.preferences.zoomFactor > 0.7 );
|
zoomOut->setEnabled( cfg.preferences.zoomFactor > 0.1 );
|
||||||
zoomBase->setEnabled( cfg.preferences.zoomFactor != 1.0 );
|
zoomBase->setEnabled( cfg.preferences.zoomFactor != 1.0 );
|
||||||
|
|
||||||
for ( int i = 0; i < ui.tabWidget->count(); i++ )
|
for ( int i = 0; i < ui.tabWidget->count(); i++ )
|
||||||
|
|
Loading…
Reference in a new issue