[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kst/portto4/kst/src/libkstapp
From:       Barth Netterfield <netterfield () astro ! utoronto ! ca>
Date:       2012-10-11 2:40:30
Message-ID: 20121011024030.8719AAC84E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1320100 by netterfield:

BUG: 306353
Save/reload "automatically scale number axis" setting in plots.


 M  +6 -0      plotitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #1320099:1320100
@@ -319,6 +319,7 @@
     xml.writeAttribute("hidetopaxislabel", QVariant(_manuallyHideTopAxisLabel).toString());
     xml.writeAttribute("hideleftaxislabel", QVariant(_manuallyHideLeftAxisLabel).toString());
     xml.writeAttribute("hiderightaxislabel", QVariant(_manuallyHideRightAxisLabel).toString());
+    xml.writeAttribute("numberaxislabelscale", QVariant(_useNumberAxisLabelScale).toString());
     saveNameInfo(xml, PLOTNUM);
 
     ViewItem::save(xml);
@@ -3708,6 +3709,11 @@
           rc->setManuallyHideRightAxisLabel(QVariant(av.toString()).toBool());
         }
 
+        av = attrs.value("numberaxislabelscale");
+        if (!av.isNull()) {
+          rc->setUseAxisScale(QVariant(av.toString()).toBool());
+        }
+
         if (attrs.value("descriptiveNameIsManual").toString() == "true") {
           rc->setDescriptiveName(attrs.value("descriptiveName").toString());
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic