qcpix/src/cpixdocumentfield.cpp
changeset 24 65456528cac2
parent 13 fcb2a58c181b
equal deleted inserted replaced
23:d4d56f5e7c55 24:65456528cac2
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: 
    14 * Description: 
    15 *
    15 *
    16 */
    16 */
    17 
    17 #include <QRegExp>
    18 #include <cpixdocumentfield.h>
    18 #include <cpixdocumentfield.h>
    19 #include "cpixdocumentfieldprivate.h"
    19 #include "cpixdocumentfieldprivate.h"
    20 
    20 
       
    21 #define SEPERATOR_EXP "\\s+"
    21 /**
    22 /**
    22  * Note: Code in this file should never throw OR leak symbian exceptions.
    23  * Note: Code in this file should never throw OR leak symbian exceptions.
    23  * Convert all leaves to C++ exceptions.
    24  * Convert all leaves to C++ exceptions.
    24  */
    25  */
    25 
    26 
    74 void CpixDocumentField::setConfig(const int aConfig)
    75 void CpixDocumentField::setConfig(const int aConfig)
    75     {
    76     {
    76     iPvtImpl->iConfig = aConfig;
    77     iPvtImpl->iConfig = aConfig;
    77     }
    78     }
    78 
    79 
       
    80 QStringList CpixDocumentField::values() const
       
    81     {
       
    82       QString str = iPvtImpl->iValue;
       
    83       return  str.split(QRegExp(SEPERATOR_EXP));
       
    84     }
       
    85 
    79 //End of File
    86 //End of File