mirror of
https://github.com/YACReader/yacreader
synced 2025-07-27 01:15:07 -04:00
refactoring for making all the values related to zooming integers to avoid rounding errors, views should always use whole frame values
This commit is contained in:
@ -572,8 +572,8 @@ void MainWindowViewer::createToolBars()
|
||||
//QAction * action = comicToolBar->addFitToWidthSlider(showZoomSliderlAction);
|
||||
|
||||
connect(showZoomSliderlAction,SIGNAL(triggered()),this,SLOT(toggleFitToWidthSlider()));
|
||||
connect(zoomSliderAction, SIGNAL(zoomRatioChanged(float)),viewer,SLOT(updateZoomRatio(float)));
|
||||
connect(viewer,SIGNAL(zoomUpdated(float)),zoomSliderAction,SLOT(updateZoomRatio(float)));
|
||||
connect(zoomSliderAction, SIGNAL(zoomRatioChanged(int)),viewer,SLOT(updateZoomRatio(int)));
|
||||
connect(viewer,SIGNAL(zoomUpdated(int)),zoomSliderAction,SLOT(updateZoomRatio(int)));
|
||||
#endif
|
||||
|
||||
comicToolBar->addAction(leftRotationAction);
|
||||
|
Reference in New Issue
Block a user