changeset 302:febd49356ef3 tonioni

Make the default zoom level somewhat configurable
author Chris Cannam
date Wed, 04 Dec 2013 18:22:28 +0000
parents 055ff09f7a08
children b6358ba5ebc6
files framework/MainWindowBase.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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