diff -r d4d56f5e7c55 -r 65456528cac2 qcpix/src/cpixdocument.cpp --- a/qcpix/src/cpixdocument.cpp Tue Oct 05 13:15:12 2010 +0530 +++ b/qcpix/src/cpixdocument.cpp Fri Oct 15 12:09:28 2010 +0530 @@ -92,4 +92,15 @@ iPvtImpl->iFields.append( CpixDocumentField::newInstance( aName, aValue, aConfig ) ); } +const CpixDocumentField& CpixDocument::field( const QString aName ) const + { + int i, count = iPvtImpl->iFields.count(); + for (i =0; i< count;i++) + { + if(iPvtImpl->iFields.at(i)->name() == aName) + break; + } + return *(iPvtImpl->iFields.at(i)); + } + //End of File