[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Fri Jun 24 20:03:39 CEST 2005


SVN commit 428620 by staikos:

more plot label changes for 2dplot


 M  +13 -0     kstplotlabel.cpp  
 M  +1 -0      kstplotlabel.h  


--- trunk/extragear/graphics/kst/kst/kstplotlabel.cpp #428619:428620
@@ -41,6 +41,19 @@
 }
 
 
+KstPlotLabel::KstPlotLabel(const QString& txt, const QFont& font, KstLJustifyType justify, float rotation) {
+  _txt = txt;
+  _interpret = true;
+  _rotation = rotation;
+  _justify = justify;
+  _fontName = font.family();
+  _symbolFontName = "Symbol";
+  _fontSize = font.pointSize();
+  _parsed = 0L;
+  reparse();
+}
+
+
 KstPlotLabel::~KstPlotLabel() {
 }
 
--- trunk/extragear/graphics/kst/kst/kstplotlabel.h #428619:428620
@@ -23,6 +23,7 @@
 class KstPlotLabel {
   public:
     KstPlotLabel(const QString& txt = QString::null, KstLJustifyType justify = 0L, float rotation = 0.0);
+    KstPlotLabel(const QString& txt, const QFont& font, KstLJustifyType justify = 0L, float rotation = 0.0);
     ~KstPlotLabel();
 
     void setText(const QString& text);


More information about the Kst mailing list