[Kst] branches/work/kst/portto4/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Fri Jan 16 04:33:33 CET 2009


SVN commit 911763 by netterfield:


... also autoscale legend sizes from the data wizard.



 M  +2 -0      datawizard.cpp  
 M  +3 -3      legendtab.ui  


--- branches/work/kst/portto4/kst/src/libkstapp/datawizard.cpp #911762:911763
@@ -927,9 +927,11 @@
 
     if (_pagePlot->legendsOn()) {
       plotItem->setShowLegend(true);
+      plotItem->legend()->setFontScale(fontScale);
     } else if (_pagePlot->legendsAuto()) {
       if (plotItem->renderItem(PlotRenderItem::Cartesian)->relationList().count() > 1) {
         plotItem->setShowLegend(true);
+        plotItem->legend()->setFontScale(fontScale);
       }
     }
   }
--- branches/work/kst/portto4/kst/src/libkstapp/legendtab.ui #911762:911763
@@ -70,7 +70,7 @@
         <property name="sizeType" >
          <enum>QSizePolicy::Expanding</enum>
         </property>
-        <property name="sizeHint" >
+        <property name="sizeHint" stdset="0" >
          <size>
           <width>128</width>
           <height>71</height>
@@ -193,7 +193,7 @@
         <property name="sizeType" >
          <enum>QSizePolicy::Expanding</enum>
         </property>
-        <property name="sizeHint" >
+        <property name="sizeHint" stdset="0" >
          <size>
           <width>128</width>
           <height>61</height>
@@ -223,7 +223,7 @@
          <number>1</number>
         </property>
         <property name="minimum" >
-         <double>0.000000000000000</double>
+         <double>-25.000000000000000</double>
         </property>
         <property name="singleStep" >
          <double>1.000000000000000</double>


More information about the Kst mailing list