author | eilers <eilers> | 2002-10-13 11:22:01 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-10-13 11:22:01 (UTC) |
commit | 5f9fb52583eb399c79a108b8e79c1a558a730422 (patch) (unidiff) | |
tree | d578ce7167053003e1cc5c5e3821bd4ac26fe122 /core/pim | |
parent | 1cbed80910293516879d9b9308ae36072033f70e (diff) | |
download | opie-5f9fb52583eb399c79a108b8e79c1a558a730422.zip opie-5f9fb52583eb399c79a108b8e79c1a558a730422.tar.gz opie-5f9fb52583eb399c79a108b8e79c1a558a730422.tar.bz2 |
First attempt to fix language translation bug. Comboboxes should now
work if translation is broken... Some translations should be reenabled
in next fix..
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 24 | ||||
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 174 |
2 files changed, 101 insertions, 97 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index cf2eddf..472b13e 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -813,8 +813,10 @@ void AddressbookWindow::initFields() | |||
813 | 813 | ||
814 | QStringList xmlFields = OContact::fields(); | 814 | QStringList xmlFields = OContact::fields(); |
815 | QStringList visibleFields = OContact::trfields(); | 815 | QStringList visibleFields = OContact::untrfields(); |
816 | // QStringList trFields = OContact::trfields(); | ||
817 | |||
816 | xmlFields.remove( "Title" ); | 818 | xmlFields.remove( "Title" ); |
817 | visibleFields.remove( tr("Name Title") ); | 819 | visibleFields.remove( "Name Title" ); |
818 | visibleFields.remove( tr("Notes") ); | 820 | visibleFields.remove( "Notes" ); |
819 | 821 | ||
820 | int i, version; | 822 | int i, version; |
@@ -839,5 +841,5 @@ void AddressbookWindow::initFields() | |||
839 | zn = cfg.readEntry( "Category" + QString::number(i), QString::null ); | 841 | zn = cfg.readEntry( "Category" + QString::number(i), QString::null ); |
840 | while ( !zn.isNull() ) { | 842 | while ( !zn.isNull() ) { |
841 | if ( zn.contains( tr("Work") ) || zn.contains( tr("Mb") ) ) { | 843 | if ( zn.contains( "Work" ) || zn.contains( "Mb" ) ) { |
842 | slOrderedFields.clear(); | 844 | slOrderedFields.clear(); |
843 | break; | 845 | break; |
@@ -886,11 +888,11 @@ void AddressbookWindow::initFields() | |||
886 | orderedFields.remove( Qtopia::Notes ); | 888 | orderedFields.remove( Qtopia::Notes ); |
887 | orderedFields.remove( Qtopia::Gender ); | 889 | orderedFields.remove( Qtopia::Gender ); |
888 | slOrderedFields.remove( tr("Name Title") ); | 890 | slOrderedFields.remove( "Name Title" ); |
889 | slOrderedFields.remove( tr("First Name") ); | 891 | slOrderedFields.remove( "First Name" ); |
890 | slOrderedFields.remove( tr("Last Name") ); | 892 | slOrderedFields.remove( "Last Name" ); |
891 | slOrderedFields.remove( tr("File As") ); | 893 | slOrderedFields.remove( "File As" ); |
892 | slOrderedFields.remove( tr("Default Email") ); | 894 | slOrderedFields.remove( "Default Email" ); |
893 | slOrderedFields.remove( tr("Notes") ); | 895 | slOrderedFields.remove( "Notes" ); |
894 | slOrderedFields.remove( tr("Gender") ); | 896 | slOrderedFields.remove( "Gender" ); |
895 | 897 | ||
896 | } | 898 | } |
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index 12d7421..b01583f 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -106,6 +106,6 @@ void ContactEditor::init() { | |||
106 | for ( i = 0; it != slOrdered.end(); i++, ++it ) { | 106 | for ( i = 0; it != slOrdered.end(); i++, ++it ) { |
107 | 107 | ||
108 | if ( (*it) == tr( "Business Fax" ) ) { | 108 | if ( (*it) == "Business Fax" ) { |
109 | slChooserNames.append( *it ); | 109 | slChooserNames.append( tr( "Business Fax" ) ); |
110 | slChooserValues.append("" ); | 110 | slChooserValues.append("" ); |
111 | //slDynamicEntries->remove( it ); | 111 | //slDynamicEntries->remove( it ); |
@@ -113,6 +113,6 @@ void ContactEditor::init() { | |||
113 | } | 113 | } |
114 | 114 | ||
115 | if ( (*it) == tr( "Home Fax" ) ) { | 115 | if ( (*it) == "Home Fax" ) { |
116 | slChooserNames.append( *it ); | 116 | slChooserNames.append( tr( "Home Fax" ) ); |
117 | slChooserValues.append("" ); | 117 | slChooserValues.append("" ); |
118 | //slDynamicEntries->remove( it ); | 118 | //slDynamicEntries->remove( it ); |
@@ -121,6 +121,6 @@ void ContactEditor::init() { | |||
121 | 121 | ||
122 | 122 | ||
123 | if ( (*it) == tr( "Business Phone" ) ) { | 123 | if ( (*it) == "Business Phone" ) { |
124 | slChooserNames.append( *it ); | 124 | slChooserNames.append( tr( "Business Phone" ) ); |
125 | slChooserValues.append( "" ); | 125 | slChooserValues.append( "" ); |
126 | //slDynamicEntries->remove( it ); | 126 | //slDynamicEntries->remove( it ); |
@@ -128,6 +128,6 @@ void ContactEditor::init() { | |||
128 | } | 128 | } |
129 | 129 | ||
130 | if ( (*it) == tr( "Home Phone" ) ) { | 130 | if ( (*it) == "Home Phone" ) { |
131 | slChooserNames.append( *it ); | 131 | slChooserNames.append( tr( "Home Phone" ) ); |
132 | slChooserValues.append( "" ); | 132 | slChooserValues.append( "" ); |
133 | //slDynamicEntries->remove( it ); | 133 | //slDynamicEntries->remove( it ); |
@@ -143,6 +143,6 @@ void ContactEditor::init() { | |||
143 | } */ | 143 | } */ |
144 | 144 | ||
145 | if ( (*it) == tr( "Business Mobile" ) ) { | 145 | if ( (*it) == "Business Mobile" ) { |
146 | slChooserNames.append( *it ); | 146 | slChooserNames.append( tr( "Business Mobile" ) ); |
147 | slChooserValues.append( "" ); | 147 | slChooserValues.append( "" ); |
148 | //slDynamicEntries->remove( it ); | 148 | //slDynamicEntries->remove( it ); |
@@ -150,6 +150,6 @@ void ContactEditor::init() { | |||
150 | } | 150 | } |
151 | 151 | ||
152 | if ( (*it) == tr( "Home Mobile" ) ) { | 152 | if ( (*it) == "Home Mobile" ) { |
153 | slChooserNames.append( *it ); | 153 | slChooserNames.append( tr( "Home Mobile" ) ); |
154 | slChooserValues.append( "" ); | 154 | slChooserValues.append( "" ); |
155 | //slDynamicEntries->remove( it ); | 155 | //slDynamicEntries->remove( it ); |
@@ -158,6 +158,6 @@ void ContactEditor::init() { | |||
158 | 158 | ||
159 | 159 | ||
160 | if ( (*it) == tr( "Business WebPage" ) ) { | 160 | if ( (*it) == "Business WebPage" ) { |
161 | slChooserNames.append( *it ); | 161 | slChooserNames.append( tr( "Business WebPage" ) ); |
162 | slChooserValues.append( "" ); | 162 | slChooserValues.append( "" ); |
163 | //slDynamicEntries->remove( it ); | 163 | //slDynamicEntries->remove( it ); |
@@ -165,6 +165,6 @@ void ContactEditor::init() { | |||
165 | } | 165 | } |
166 | 166 | ||
167 | if ( (*it) == tr( "Home Web Page" ) ) { | 167 | if ( (*it) == "Home Web Page" ) { |
168 | slChooserNames.append( *it ); | 168 | slChooserNames.append( tr( "Home Web Page" ) ); |
169 | slChooserValues.append( "" ); | 169 | slChooserValues.append( "" ); |
170 | //slDynamicEntries->remove( it ); | 170 | //slDynamicEntries->remove( it ); |
@@ -172,6 +172,6 @@ void ContactEditor::init() { | |||
172 | } | 172 | } |
173 | 173 | ||
174 | if ( (*it) == tr( "Business Pager" ) ) { | 174 | if ( (*it) == "Business Pager" ) { |
175 | slChooserNames.append( *it ); | 175 | slChooserNames.append( tr( "Business Pager" ) ); |
176 | slChooserValues.append( "" ); | 176 | slChooserValues.append( "" ); |
177 | //slDynamicEntries->remove( it ); | 177 | //slDynamicEntries->remove( it ); |
@@ -179,6 +179,6 @@ void ContactEditor::init() { | |||
179 | } | 179 | } |
180 | 180 | ||
181 | if ( *it == tr( "Default Email" ) ) { | 181 | if ( *it == "Default Email" ) { |
182 | slChooserNames.append( *it ); | 182 | slChooserNames.append( tr( "Default Email" ) ); |
183 | slChooserValues.append( "" ); | 183 | slChooserValues.append( "" ); |
184 | //slDynamicEntries->remove( it ); | 184 | //slDynamicEntries->remove( it ); |
@@ -186,6 +186,6 @@ void ContactEditor::init() { | |||
186 | } | 186 | } |
187 | 187 | ||
188 | if ( *it == tr( "Emails" ) ) { | 188 | if ( *it == "Emails" ) { |
189 | slChooserNames.append( *it ); | 189 | slChooserNames.append( tr( "Emails" ) ); |
190 | slChooserValues.append( "" ); | 190 | slChooserValues.append( "" ); |
191 | //slDynamicEntries->remove( it ); | 191 | //slDynamicEntries->remove( it ); |
@@ -196,35 +196,35 @@ void ContactEditor::init() { | |||
196 | continue; | 196 | continue; |
197 | 197 | ||
198 | if ( *it == tr( "Name Title" ) ) { | 198 | if ( *it == "Name Title" ) { |
199 | //slDynamicEntries->remove( it ); | 199 | //slDynamicEntries->remove( it ); |
200 | continue; | 200 | continue; |
201 | } | 201 | } |
202 | 202 | ||
203 | if ( *it == tr( "First Name" ) ) { | 203 | if ( *it == "First Name" ) { |
204 | //slDynamicEntries->remove( it ); | 204 | //slDynamicEntries->remove( it ); |
205 | continue; | 205 | continue; |
206 | } | 206 | } |
207 | 207 | ||
208 | if ( *it == tr( "Middle Name" ) ) { | 208 | if ( *it == "Middle Name" ) { |
209 | //slDynamicEntries->remove( it ); | 209 | //slDynamicEntries->remove( it ); |
210 | continue; | 210 | continue; |
211 | } | 211 | } |
212 | 212 | ||
213 | if ( *it == tr( "Last Name" ) ) { | 213 | if ( *it == "Last Name" ) { |
214 | //slDynamicEntries->remove( it ); | 214 | //slDynamicEntries->remove( it ); |
215 | continue; | 215 | continue; |
216 | } | 216 | } |
217 | 217 | ||
218 | if ( *it == tr( "Suffix" ) ) { | 218 | if ( *it == "Suffix" ) { |
219 | //slDynamicEntries->remove( it ); | 219 | //slDynamicEntries->remove( it ); |
220 | continue; | 220 | continue; |
221 | } | 221 | } |
222 | 222 | ||
223 | if ( *it == tr( "File As" ) ) { | 223 | if ( *it == "File As" ) { |
224 | //slDynamicEntries->remove( it ); | 224 | //slDynamicEntries->remove( it ); |
225 | continue; | 225 | continue; |
226 | } | 226 | } |
227 | 227 | ||
228 | if ( *it == tr( "Gender" ) ) { | 228 | if ( *it == "Gender" ) { |
229 | hasGender = TRUE; | 229 | hasGender = TRUE; |
230 | //slDynamicEntries->remove( it ); | 230 | //slDynamicEntries->remove( it ); |
@@ -232,5 +232,5 @@ void ContactEditor::init() { | |||
232 | } | 232 | } |
233 | 233 | ||
234 | if ( *it == tr( "Job Title" ) ) { | 234 | if ( *it == "Job Title" ) { |
235 | hasTitle = TRUE; | 235 | hasTitle = TRUE; |
236 | //slDynamicEntries->remove( it ); | 236 | //slDynamicEntries->remove( it ); |
@@ -238,5 +238,5 @@ void ContactEditor::init() { | |||
238 | } | 238 | } |
239 | 239 | ||
240 | if ( *it == tr( "Company") || *it == tr( "Organization" ) ) { | 240 | if ( ( *it == "Company") || (*it == "Organization" ) ) { |
241 | hasCompany = TRUE; | 241 | hasCompany = TRUE; |
242 | //slDynamicEntries->remove( it ); | 242 | //slDynamicEntries->remove( it ); |
@@ -244,5 +244,5 @@ void ContactEditor::init() { | |||
244 | } | 244 | } |
245 | 245 | ||
246 | if ( *it == tr( "Notes" ) ) { | 246 | if ( *it == "Notes" ) { |
247 | hasNotes = TRUE; | 247 | hasNotes = TRUE; |
248 | //slDynamicEntries->remove( it ); | 248 | //slDynamicEntries->remove( it ); |
@@ -250,10 +250,10 @@ void ContactEditor::init() { | |||
250 | } | 250 | } |
251 | 251 | ||
252 | if ( *it == tr( "Groups" ) ) { | 252 | if ( *it == "Groups" ) { |
253 | //slDynamicEntries->remove( it ); | 253 | //slDynamicEntries->remove( it ); |
254 | continue; | 254 | continue; |
255 | } | 255 | } |
256 | 256 | ||
257 | if ( (*it) == tr( "Business Street" ) ) { | 257 | if ( (*it) == "Business Street" ) { |
258 | hasStreet = TRUE; | 258 | hasStreet = TRUE; |
259 | //slDynamicEntries->remove( it ); | 259 | //slDynamicEntries->remove( it ); |
@@ -261,5 +261,5 @@ void ContactEditor::init() { | |||
261 | } | 261 | } |
262 | 262 | ||
263 | if ( (*it) == tr( "Home Street" ) ) { | 263 | if ( (*it) == "Home Street" ) { |
264 | hasStreet = TRUE; | 264 | hasStreet = TRUE; |
265 | //slDynamicEntries->remove( it ); | 265 | //slDynamicEntries->remove( it ); |
@@ -279,5 +279,5 @@ void ContactEditor::init() { | |||
279 | } */ | 279 | } */ |
280 | 280 | ||
281 | if ( (*it) == tr( "Business City" ) ) { | 281 | if ( (*it) == "Business City" ) { |
282 | hasCity = TRUE; | 282 | hasCity = TRUE; |
283 | //slDynamicEntries->remove( it ); | 283 | //slDynamicEntries->remove( it ); |
@@ -285,5 +285,5 @@ void ContactEditor::init() { | |||
285 | } | 285 | } |
286 | 286 | ||
287 | if ( (*it) == tr( "Business State" ) ) { | 287 | if ( (*it) == "Business State" ) { |
288 | hasState = TRUE; | 288 | hasState = TRUE; |
289 | //slDynamicEntries->remove( it ); | 289 | //slDynamicEntries->remove( it ); |
@@ -291,5 +291,5 @@ void ContactEditor::init() { | |||
291 | } | 291 | } |
292 | 292 | ||
293 | if ( (*it) == tr( "Business Zip" ) ) { | 293 | if ( (*it) == "Business Zip" ) { |
294 | hasZip = TRUE; | 294 | hasZip = TRUE; |
295 | //slDynamicEntries->remove( it ); | 295 | //slDynamicEntries->remove( it ); |
@@ -297,5 +297,5 @@ void ContactEditor::init() { | |||
297 | } | 297 | } |
298 | 298 | ||
299 | if ( (*it) == tr( "Business Country" ) ) { | 299 | if ( (*it) == "Business Country" ) { |
300 | hasCountry = TRUE; | 300 | hasCountry = TRUE; |
301 | //slDynamicEntries->remove( it ); | 301 | //slDynamicEntries->remove( it ); |
@@ -303,5 +303,5 @@ void ContactEditor::init() { | |||
303 | } | 303 | } |
304 | 304 | ||
305 | if ( (*it) == tr( "Home City" ) ) { | 305 | if ( (*it) == "Home City" ) { |
306 | hasCity = TRUE; | 306 | hasCity = TRUE; |
307 | //slDynamicEntries->remove( it ); | 307 | //slDynamicEntries->remove( it ); |
@@ -309,5 +309,5 @@ void ContactEditor::init() { | |||
309 | } | 309 | } |
310 | 310 | ||
311 | if ( (*it) == tr( "Home State" ) ) { | 311 | if ( (*it) == "Home State" ) { |
312 | hasState = TRUE; | 312 | hasState = TRUE; |
313 | //slDynamicEntries->remove( it ); | 313 | //slDynamicEntries->remove( it ); |
@@ -315,5 +315,5 @@ void ContactEditor::init() { | |||
315 | } | 315 | } |
316 | 316 | ||
317 | if ( (*it) == tr( "Home Zip" ) ) { | 317 | if ( (*it) == "Home Zip" ) { |
318 | hasZip = TRUE; | 318 | hasZip = TRUE; |
319 | //slDynamicEntries->remove( it ); | 319 | //slDynamicEntries->remove( it ); |
@@ -321,5 +321,5 @@ void ContactEditor::init() { | |||
321 | } | 321 | } |
322 | 322 | ||
323 | if ( (*it) == tr( "Home Country" ) ) { | 323 | if ( (*it) == "Home Country" ) { |
324 | hasCountry = TRUE; | 324 | hasCountry = TRUE; |
325 | //slDynamicEntries->remove( it ); | 325 | //slDynamicEntries->remove( it ); |
@@ -1361,35 +1361,35 @@ void ContactEditor::setEntry( const OContact &entry ) { | |||
1361 | QListIterator<QLineEdit> itLE( listValue ); | 1361 | QListIterator<QLineEdit> itLE( listValue ); |
1362 | for ( it = slDynamicEntries.begin(); it != slDynamicEntries.end(); ++it, ++itLE) { | 1362 | for ( it = slDynamicEntries.begin(); it != slDynamicEntries.end(); ++it, ++itLE) { |
1363 | if ( *it == tr("Department") ) | 1363 | if ( *it =="Department" ) |
1364 | (*itLE)->setText( ent.department() ); | 1364 | (*itLE)->setText( ent.department() ); |
1365 | 1365 | ||
1366 | if ( *it == tr("Company" )) | 1366 | if ( *it == "Company" ) |
1367 | (*itLE)->setText( ent.company() ); | 1367 | (*itLE)->setText( ent.company() ); |
1368 | 1368 | ||
1369 | if ( *it == tr("Office" )) | 1369 | if ( *it == "Office" ) |
1370 | (*itLE)->setText( ent.office() ); | 1370 | (*itLE)->setText( ent.office() ); |
1371 | 1371 | ||
1372 | if ( *it == tr("Profession" )) | 1372 | if ( *it == "Profession" ) |
1373 | (*itLE)->setText( ent.profession() ); | 1373 | (*itLE)->setText( ent.profession() ); |
1374 | 1374 | ||
1375 | if ( *it == tr("Assistant" )) | 1375 | if ( *it == "Assistant" ) |
1376 | (*itLE)->setText( ent.assistant() ); | 1376 | (*itLE)->setText( ent.assistant() ); |
1377 | 1377 | ||
1378 | if ( *it == tr("Manager" )) | 1378 | if ( *it == "Manager" ) |
1379 | (*itLE)->setText( ent.manager() ); | 1379 | (*itLE)->setText( ent.manager() ); |
1380 | 1380 | ||
1381 | if ( *it == tr("Spouse" )) | 1381 | if ( *it == "Spouse" ) |
1382 | (*itLE)->setText( ent.spouse() ); | 1382 | (*itLE)->setText( ent.spouse() ); |
1383 | 1383 | ||
1384 | if ( *it == tr("Birthday" )) | 1384 | if ( *it == "Birthday" ) |
1385 | (*itLE)->setText( ent.birthday() ); | 1385 | (*itLE)->setText( ent.birthday() ); |
1386 | 1386 | ||
1387 | if ( *it == tr("Anniversary" )) | 1387 | if ( *it == "Anniversary" ) |
1388 | (*itLE)->setText( ent.anniversary() ); | 1388 | (*itLE)->setText( ent.anniversary() ); |
1389 | 1389 | ||
1390 | if ( *it == tr("Nickname" )) | 1390 | if ( *it == "Nickname" ) |
1391 | (*itLE)->setText( ent.nickname() ); | 1391 | (*itLE)->setText( ent.nickname() ); |
1392 | 1392 | ||
1393 | if ( *it == tr("Children" )) | 1393 | if ( *it == "Children" ) |
1394 | (*itLE)->setText( ent.children() ); | 1394 | (*itLE)->setText( ent.children() ); |
1395 | 1395 | ||
@@ -1399,5 +1399,5 @@ void ContactEditor::setEntry( const OContact &entry ) { | |||
1399 | for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { | 1399 | for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { |
1400 | 1400 | ||
1401 | if ( *it == tr("Business Phone") || *it == tr("Work Phone" )) | 1401 | if ( ( *it == "Business Phone") || ( *it == "Work Phone" ) ) |
1402 | *itV = ent.businessPhone(); | 1402 | *itV = ent.businessPhone(); |
1403 | /* | 1403 | /* |
@@ -1405,8 +1405,8 @@ void ContactEditor::setEntry( const OContact &entry ) { | |||
1405 | *itV = ent.business2Phone(); | 1405 | *itV = ent.business2Phone(); |
1406 | */ | 1406 | */ |
1407 | if ( *it == tr("Business Fax") || *it == tr("Work Fax" )) | 1407 | if ( ( *it == "Business Fax") || ( *it == "Work Fax" ) ) |
1408 | *itV = ent.businessFax(); | 1408 | *itV = ent.businessFax(); |
1409 | 1409 | ||
1410 | if ( *it == tr("Business Mobile") || *it == tr("work Mobile" )) | 1410 | if ( ( *it == "Business Mobile" ) || ( *it == "work Mobile" ) ) |
1411 | *itV = ent.businessMobile(); | 1411 | *itV = ent.businessMobile(); |
1412 | /* | 1412 | /* |
@@ -1414,11 +1414,11 @@ void ContactEditor::setEntry( const OContact &entry ) { | |||
1414 | *itV = ent.companyPhone(); | 1414 | *itV = ent.companyPhone(); |
1415 | */ | 1415 | */ |
1416 | if ( *it == tr("Default Email" )) | 1416 | if ( *it == "Default Email" ) |
1417 | *itV = ent.defaultEmail(); | 1417 | *itV = ent.defaultEmail(); |
1418 | 1418 | ||
1419 | if ( *it == tr("Emails" )) | 1419 | if ( *it == "Emails" ) |
1420 | *itV = ent.emailList().join(", "); // :SX | 1420 | *itV = ent.emailList().join(", "); // :SX |
1421 | 1421 | ||
1422 | if ( *it == tr("Home Phone" )) | 1422 | if ( *it == "Home Phone" ) |
1423 | *itV = ent.homePhone(); | 1423 | *itV = ent.homePhone(); |
1424 | /* | 1424 | /* |
@@ -1426,8 +1426,8 @@ void ContactEditor::setEntry( const OContact &entry ) { | |||
1426 | *itV = ent.home2Phone(); | 1426 | *itV = ent.home2Phone(); |
1427 | */ | 1427 | */ |
1428 | if ( *it == tr("Home Fax" )) | 1428 | if ( *it == "Home Fax" ) |
1429 | *itV = ent.homeFax(); | 1429 | *itV = ent.homeFax(); |
1430 | 1430 | ||
1431 | if ( *it == tr("Home Mobile" )) | 1431 | if ( *it == "Home Mobile" ) |
1432 | *itV = ent.homeMobile(); | 1432 | *itV = ent.homeMobile(); |
1433 | /* | 1433 | /* |
@@ -1441,5 +1441,5 @@ void ContactEditor::setEntry( const OContact &entry ) { | |||
1441 | *itV = ent.otherPhone(); | 1441 | *itV = ent.otherPhone(); |
1442 | */ | 1442 | */ |
1443 | if ( *it == tr("Business Pager") || *it == tr("Work Pager" )) | 1443 | if ( ( *it == "Business Pager" ) || ( *it == "Work Pager" ) ) |
1444 | *itV = ent.businessPager(); | 1444 | *itV = ent.businessPager(); |
1445 | /* | 1445 | /* |
@@ -1462,7 +1462,8 @@ void ContactEditor::setEntry( const OContact &entry ) { | |||
1462 | *itV = ent.yahooIM(); | 1462 | *itV = ent.yahooIM(); |
1463 | */ | 1463 | */ |
1464 | if ( *it == tr("Home Web Page") ) | 1464 | if ( *it == "Home Web Page" ) |
1465 | *itV = ent.homeWebpage(); | 1465 | *itV = ent.homeWebpage(); |
1466 | if ( *it == tr("Business WebPage") || *it == tr("Work Web Page") ) | 1466 | |
1467 | if ( ( *it == "Business WebPage" ) || ( *it == "Work Web Page" ) ) | ||
1467 | *itV = ent.businessWebpage(); | 1468 | *itV = ent.businessWebpage(); |
1468 | 1469 | ||
@@ -1558,35 +1559,35 @@ void ContactEditor::saveEntry() { | |||
1558 | QListIterator<QLineEdit> itLE( listValue ); | 1559 | QListIterator<QLineEdit> itLE( listValue ); |
1559 | for ( it = slDynamicEntries.begin(); it != slDynamicEntries.end(); ++it, ++itLE) { | 1560 | for ( it = slDynamicEntries.begin(); it != slDynamicEntries.end(); ++it, ++itLE) { |
1560 | if ( *it == tr("Department" )) | 1561 | if ( *it == "Department" ) |
1561 | ent.setDepartment( (*itLE)->text() ); | 1562 | ent.setDepartment( (*itLE)->text() ); |
1562 | 1563 | ||
1563 | if ( *it == tr("Company" )) | 1564 | if ( *it == "Company" ) |
1564 | ent.setCompany( (*itLE)->text() ); | 1565 | ent.setCompany( (*itLE)->text() ); |
1565 | 1566 | ||
1566 | if ( *it == tr("Office" )) | 1567 | if ( *it == "Office" ) |
1567 | ent.setOffice( (*itLE)->text() ); | 1568 | ent.setOffice( (*itLE)->text() ); |
1568 | 1569 | ||
1569 | if ( *it == tr("Profession" )) | 1570 | if ( *it == "Profession" ) |
1570 | ent.setProfession( (*itLE)->text() ); | 1571 | ent.setProfession( (*itLE)->text() ); |
1571 | 1572 | ||
1572 | if ( *it == tr("Assistant" )) | 1573 | if ( *it == "Assistant" ) |
1573 | ent.setAssistant( (*itLE)->text() ); | 1574 | ent.setAssistant( (*itLE)->text() ); |
1574 | 1575 | ||
1575 | if ( *it == tr("Manager" )) | 1576 | if ( *it == "Manager" ) |
1576 | ent.setManager( (*itLE)->text() ); | 1577 | ent.setManager( (*itLE)->text() ); |
1577 | 1578 | ||
1578 | if ( *it == tr("Spouse" )) | 1579 | if ( *it == "Spouse" ) |
1579 | ent.setSpouse( (*itLE)->text() ); | 1580 | ent.setSpouse( (*itLE)->text() ); |
1580 | 1581 | ||
1581 | if ( *it == tr("Birthday" )) | 1582 | if ( *it == "Birthday" ) |
1582 | ent.setBirthday( (*itLE)->text() ); | 1583 | ent.setBirthday( (*itLE)->text() ); |
1583 | 1584 | ||
1584 | if ( *it == tr("Anniversary" )) | 1585 | if ( *it == "Anniversary" ) |
1585 | ent.setAnniversary( (*itLE)->text() ); | 1586 | ent.setAnniversary( (*itLE)->text() ); |
1586 | 1587 | ||
1587 | if ( *it == tr("Nickname" )) | 1588 | if ( *it == "Nickname" ) |
1588 | ent.setNickname( (*itLE)->text() ); | 1589 | ent.setNickname( (*itLE)->text() ); |
1589 | 1590 | ||
1590 | if ( *it == tr("Children" )) | 1591 | if ( *it == "Children" ) |
1591 | ent.setChildren( (*itLE)->text() ); | 1592 | ent.setChildren( (*itLE)->text() ); |
1592 | 1593 | ||
@@ -1596,5 +1597,5 @@ void ContactEditor::saveEntry() { | |||
1596 | for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { | 1597 | for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { |
1597 | 1598 | ||
1598 | if ( *it == tr("Business Phone") || *it == tr("Work Phone" )) | 1599 | if ( ( *it == "Business Phone" ) || ( *it == "Work Phone" ) ) |
1599 | ent.setBusinessPhone( *itV ); | 1600 | ent.setBusinessPhone( *itV ); |
1600 | /* | 1601 | /* |
@@ -1602,8 +1603,8 @@ void ContactEditor::saveEntry() { | |||
1602 | ent.setBusiness2Phone( *itV ); | 1603 | ent.setBusiness2Phone( *itV ); |
1603 | */ | 1604 | */ |
1604 | if ( *it == tr("Business Fax") || *it == tr("Work Fax" )) | 1605 | if ( ( *it == "Business Fax" ) || ( *it == "Work Fax" ) ) |
1605 | ent.setBusinessFax( *itV ); | 1606 | ent.setBusinessFax( *itV ); |
1606 | 1607 | ||
1607 | if ( *it == tr("Business Mobile") || *it == tr("Work Mobile" )) | 1608 | if ( ( *it == "Business Mobile" ) || ( *it == "Work Mobile" ) ) |
1608 | ent.setBusinessMobile( *itV ); | 1609 | ent.setBusinessMobile( *itV ); |
1609 | /* | 1610 | /* |
@@ -1614,5 +1615,5 @@ void ContactEditor::saveEntry() { | |||
1614 | //ent.setDefaultEmail( *itV ); | 1615 | //ent.setDefaultEmail( *itV ); |
1615 | 1616 | ||
1616 | if ( *it == tr("Emails" )) { | 1617 | if ( *it == "Emails" ){ |
1617 | QString allemail; | 1618 | QString allemail; |
1618 | QString defaultmail; | 1619 | QString defaultmail; |
@@ -1623,5 +1624,5 @@ void ContactEditor::saveEntry() { | |||
1623 | } | 1624 | } |
1624 | 1625 | ||
1625 | if ( *it == tr("Home Phone" )) | 1626 | if ( *it == "Home Phone" ) |
1626 | ent.setHomePhone( *itV ); | 1627 | ent.setHomePhone( *itV ); |
1627 | /* | 1628 | /* |
@@ -1629,8 +1630,8 @@ void ContactEditor::saveEntry() { | |||
1629 | ent.setHome2Phone( *itV ); | 1630 | ent.setHome2Phone( *itV ); |
1630 | */ | 1631 | */ |
1631 | if ( *it == tr("Home Fax" )) | 1632 | if ( *it == "Home Fax" ) |
1632 | ent.setHomeFax( *itV ); | 1633 | ent.setHomeFax( *itV ); |
1633 | 1634 | ||
1634 | if ( *it == tr("Home Mobile" )) | 1635 | if ( *it == "Home Mobile" ) |
1635 | ent.setHomeMobile( *itV ); | 1636 | ent.setHomeMobile( *itV ); |
1636 | /* | 1637 | /* |
@@ -1644,5 +1645,5 @@ void ContactEditor::saveEntry() { | |||
1644 | ent.setOtherPhone( *itV ); | 1645 | ent.setOtherPhone( *itV ); |
1645 | */ | 1646 | */ |
1646 | if ( *it == tr("Business Pager") || *it == tr("Work Pager") ) | 1647 | if ( ( *it == "Business Pager" ) || ( *it == "Work Pager" ) ) |
1647 | ent.setBusinessPager( *itV ); | 1648 | ent.setBusinessPager( *itV ); |
1648 | /* | 1649 | /* |
@@ -1665,7 +1666,8 @@ void ContactEditor::saveEntry() { | |||
1665 | ent.setYahooIM( *itV ); | 1666 | ent.setYahooIM( *itV ); |
1666 | */ | 1667 | */ |
1667 | if ( *it == tr("Home Web Page") ) | 1668 | if ( *it == "Home Web Page" ) |
1668 | ent.setHomeWebpage( *itV ); | 1669 | ent.setHomeWebpage( *itV ); |
1669 | if ( *it == tr("Business WebPage") || *it == tr("Work Web Page" )) | 1670 | |
1671 | if ( ( *it == "Business WebPage" ) || ( *it == "Work Web Page" ) ) | ||
1670 | ent.setBusinessWebpage( *itV ); | 1672 | ent.setBusinessWebpage( *itV ); |
1671 | 1673 | ||