comparison framework/MainWindowBase.cpp @ 302:febd49356ef3 tonioni

Make the default zoom level somewhat configurable
author Chris Cannam
date Wed, 04 Dec 2013 18:22:28 +0000
parents 14b1768e5406
children b6358ba5ebc6
comparison
equal deleted inserted replaced
301:055ff09f7a08 302:febd49356ef3
2247 2247
2248 void 2248 void
2249 MainWindowBase::zoomDefault() 2249 MainWindowBase::zoomDefault()
2250 { 2250 {
2251 Pane *currentPane = m_paneStack->getCurrentPane(); 2251 Pane *currentPane = m_paneStack->getCurrentPane();
2252 if (currentPane) currentPane->setZoomLevel(1024); 2252 QSettings settings;
2253 settings.beginGroup("MainWindow");
2254 int zoom = settings.value("zoom-default", 1024).toInt();
2255 settings.endGroup();
2256 if (currentPane) currentPane->setZoomLevel(zoom);
2253 } 2257 }
2254 2258
2255 void 2259 void
2256 MainWindowBase::scrollLeft() 2260 MainWindowBase::scrollLeft()
2257 { 2261 {