[Kst] branches/kst/hfi_calib/kst/kst

George Staikos staikos at kde.org
Mon Feb 13 18:49:32 CET 2006


SVN commit 509094 by staikos:

Barths' patch for legends


 M  +1 -0      kstvcurve.cpp  
 M  +2 -0      kstviewlegend.cpp  
 M  +1 -0      kstviewlegend.h  


--- branches/kst/hfi_calib/kst/kst/kstvcurve.cpp #509093:509094
@@ -195,6 +195,7 @@
   _type = "Curve";
   Color = in_color;
   setTagName(in_tag);
+  updateParsedLegendTag();
 }
 
 
--- branches/kst/hfi_calib/kst/kst/kstviewlegend.cpp #509093:509094
@@ -89,6 +89,8 @@
   _absFontSize = _fontSize+KstSettings::globalSettings()->plotFontSize;
   _layoutActions &= ~(MoveTo | Copy | CopyTo);
   _standardActions |= Delete | Edit;
+  _legendMargin = 5;
+
   QStringList ctaglist;
 
   // read the properties
--- branches/kst/hfi_calib/kst/kst/kstviewlegend.h #509093:509094
@@ -36,6 +36,7 @@
   Q_PROPERTY(QString font READ fontName WRITE setFontName)
   Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize)
   Q_PROPERTY(bool transparent READ transparent WRITE setTransparent)
+  Q_PROPERTY(int legendMargin READ legendMargin WRITE setLegendMargin)
   Q_PROPERTY(bool vertical READ vertical WRITE setVertical)
   public:
     KstViewLegend();


More information about the Kst mailing list