[Kst] kdeextragear-2/kst/kst/datasources/lfiio

Andrew Walker arwalker at sumusltd.com
Wed Mar 10 20:49:09 CET 2004


CVS commit by arwalker: 

As before, but use the existing base class definitions.


  M +6 -11     lfiio.cpp   1.6
  M +0 -2      lfiio.h   1.3


--- kdeextragear-2/kst/kst/datasources/lfiio/lfiio.cpp  #1.5:1.6
@@ -95,6 +95,6 @@ KstObject::UpdateType LFIIOSource::updat
         if( iResult == 0 )
         {
-          _strListColNames.clear( );
-          _strListColNames.append( "INDEX" );
+          _fieldList.clear( );
+          _fieldList.append( "INDEX" );
           
           _valid = true;
@@ -112,10 +112,10 @@ KstObject::UpdateType LFIIOSource::updat
             { 
               strName = charName;
-              _strListColNames.append( strName );
+              _fieldList.append( strName );
             }
             else
             {
               strName.setNum( i );
-              _strListColNames.append( strName );
+              _fieldList.append( strName );
             }
               
@@ -231,9 +231,9 @@ bool LFIIOSource::getColNumber( const QS
   else
   {
-    iCount = _strListColNames.count( );
+    iCount = _fieldList.count( );
 
     for( i=0; i<iCount; i++ )
     {
-      strName = _strListColNames[i].lower( );
+      strName = _fieldList[i].lower( );
       if( strName.compare( field.lower( ) ) == 0 )
       {
@@ -289,9 +289,4 @@ QString LFIIOSource::fileType( ) const 
 
 
-QStringList LFIIOSource::fieldList( ) const
-{
-  return _strListColNames;
-}
-
 void LFIIOSource::save( QTextStream& ts ) 
 {

--- kdeextragear-2/kst/kst/datasources/lfiio/lfiio.h  #1.2:1.3
@@ -35,10 +35,8 @@ public:
   virtual QString fileType() const;
   virtual void save(QTextStream &ts);
-  virtual QStringList fieldList() const;
 
 private:
   bool        getColNumber( const QString& field, int* piColNumber ) const;
 
-  QStringList _strListColNames;
   int         _numFrames;
   int         _numCols;





More information about the Kst mailing list