[Kst] kdeextragear-2/kst/kst

Laurent Montel montel at kde.org
Wed May 7 15:48:16 CEST 2003


CVS commit by mlaurent: 

Add const


  M +1 -1      kstscalar.h   1.2
  M +7 -7      kstvcurve.cpp   1.2
  M +7 -7      kstvcurve.h   1.2


--- kdeextragear-2/kst/kst/kstscalar.h  #1.1:1.2
@@ -33,5 +33,5 @@ public:
 
   /* return a string representation of the scalar */
-  QString label() {return (StringV);}
+  QString label()const {return (StringV);}
 
   /** Set the value of the scalar - ignored for some types */

--- kdeextragear-2/kst/kst/kstvcurve.cpp  #1.1.1.1:1.2
@@ -136,13 +136,13 @@ void KstVCurve::getEYPoint(const int &i,
 }
 
-QString KstVCurve::getXVTag() {
+QString KstVCurve::getXVTag() const{
   return (VX->tagName());
 }
 
-QString KstVCurve::getYVTag() {
+QString KstVCurve::getYVTag() const{
   return (VY->tagName());
 }
 
-QString KstVCurve::getXETag() {
+QString KstVCurve::getXETag() const{
   if (EX==NULL) {
     return ("<None>");
@@ -152,5 +152,5 @@ QString KstVCurve::getXETag() {
 }
 
-QString KstVCurve::getYETag() {
+QString KstVCurve::getYETag() const {
   if (EY==NULL) {
     return ("<None>");
@@ -221,13 +221,13 @@ void KstVCurve::setYError(KstVector *new
 }
 
-QString KstVCurve::getXLabel() {
+QString KstVCurve::getXLabel() const{
   return(VX->getLabel());
 }
 
-QString KstVCurve::getYLabel() {
+QString KstVCurve::getYLabel() const{
   return (VY->getLabel());
 }
 
-QString KstVCurve::getTopLabel() {
+QString KstVCurve::getTopLabel() const{
   return(VY->getFileLabel());
 }

--- kdeextragear-2/kst/kst/kstvcurve.h  #1.1.1.1:1.2
@@ -48,8 +48,8 @@ public:
   void getEYPoint(const int &i, double &x1, double &y1, double &ey1);
 
-  QString getXVTag();
-  QString getYVTag();
-  QString getXETag();
-  QString getYETag();
+  QString getXVTag()const ;
+  QString getYVTag() const;
+  QString getXETag() const;
+  QString getYETag() const;
 
   void setXVector(KstVector *new_vx);
@@ -61,7 +61,7 @@ public:
   void save(QTextStream &ts);
 
-  QString getXLabel();
-  QString getYLabel();
-  QString getTopLabel();
+  QString getXLabel() const;
+  QString getYLabel() const;
+  QString getTopLabel() const;
 
   KstCurveType type();




More information about the Kst mailing list