diff 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
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Tue Dec 03 17:58:53 2013 +0000
+++ b/framework/MainWindowBase.cpp	Wed Dec 04 18:22:28 2013 +0000
@@ -2249,7 +2249,11 @@
 MainWindowBase::zoomDefault()
 {
     Pane *currentPane = m_paneStack->getCurrentPane();
-    if (currentPane) currentPane->setZoomLevel(1024);
+    QSettings settings;
+    settings.beginGroup("MainWindow");
+    int zoom = settings.value("zoom-default", 1024).toInt();
+    settings.endGroup();
+    if (currentPane) currentPane->setZoomLevel(zoom);
 }
 
 void