summaryrefslogtreecommitdiff
path: root/src/dictionary/Field.cpp
blob: 5992ac06c65ffeb780c7d0c2d97d94046f4cc8d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "Field.h"

Field::Field( QString aName, QString aStyle ):
    m_name( aName )
    {
    if( aStyle.isEmpty() )
        m_style = FieldStyleFactory::DefaultStyle;
    else
        m_style = aStyle;
    }

void Field::setName( const QString aName )
    {
        // Save the first original name
    if( m_oldName.isEmpty() )
        m_oldName = m_name;
    m_name = aName;
    }