Diffstat (limited to 'core/pim/addressbook/contacteditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index d830ad3..9efb8c0 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -549,12 +549,14 @@ void ContactEditor::init() { | |||
549 | // Create Labels and lineedit fields for every dynamic entry | 549 | // Create Labels and lineedit fields for every dynamic entry |
550 | QStringList::ConstIterator it = slDynamicEntries.begin(); | 550 | QStringList::ConstIterator it = slDynamicEntries.begin(); |
551 | QStringList::ConstIterator trit = trlDynamicEntries.begin(); | 551 | QStringList::ConstIterator trit = trlDynamicEntries.begin(); |
552 | QMap<QString, int> mapStrToID = OContactFields::untrFieldsToId(); | ||
553 | QMap<int, QString> mapIdToStr = OContactFields::idToTrFields(); | ||
552 | for (i = counter; it != slDynamicEntries.end(); i++, ++it, ++trit) { | 554 | for (i = counter; it != slDynamicEntries.end(); i++, ++it, ++trit) { |
553 | 555 | ||
554 | if (((*it) == "Anniversary") || | 556 | if (((*it) == "Anniversary") || |
555 | ((*it) == "Birthday")|| ((*it) == "Gender")) continue; | 557 | ((*it) == "Birthday")|| ((*it) == "Gender")) continue; |
556 | 558 | ||
557 | l = new QLabel( (*it).utf8() , container ); | 559 | l = new QLabel( mapIdToStr[mapStrToID[*it]].utf8() , container ); |
558 | listName.append( l ); | 560 | listName.append( l ); |
559 | gl->addWidget( l, i, 0 ); | 561 | gl->addWidget( l, i, 0 ); |
560 | QLineEdit *e = new QLineEdit( container ); | 562 | QLineEdit *e = new QLineEdit( container ); |