qcpix/src/cpixdocument.cpp
changeset 24 65456528cac2
parent 13 fcb2a58c181b
equal deleted inserted replaced
23:d4d56f5e7c55 24:65456528cac2
    90 void CpixDocument::addField(const QString aName, const QString aValue, const int aConfig)
    90 void CpixDocument::addField(const QString aName, const QString aValue, const int aConfig)
    91     {
    91     {
    92     iPvtImpl->iFields.append( CpixDocumentField::newInstance( aName, aValue, aConfig ) );
    92     iPvtImpl->iFields.append( CpixDocumentField::newInstance( aName, aValue, aConfig ) );
    93     }
    93     }
    94 
    94 
       
    95 const CpixDocumentField& CpixDocument::field( const QString aName ) const
       
    96     {
       
    97     int i, count = iPvtImpl->iFields.count();
       
    98     for (i =0; i< count;i++)
       
    99         {
       
   100         if(iPvtImpl->iFields.at(i)->name() == aName)
       
   101             break;
       
   102         }
       
   103         return *(iPvtImpl->iFields.at(i));
       
   104     }
       
   105 
    95 //End of File
   106 //End of File