summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abeditor.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/addressbook/abeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abeditor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/pim/addressbook/abeditor.cpp b/core/pim/addressbook/abeditor.cpp
index 91e8722..75e7ede 100644
--- a/core/pim/addressbook/abeditor.cpp
+++ b/core/pim/addressbook/abeditor.cpp
@@ -485,98 +485,97 @@ void AbEditor::saveEntry()
case Qtopia::BusinessMobile:
ent.setBusinessMobile( it.current()->text() );
break;
case Qtopia::BusinessPager:
ent.setBusinessPager( it.current()->text() );
break;
case Qtopia::Profession:
ent.setProfession( it.current()->text() );
break;
case Qtopia::Assistant:
ent.setAssistant( it.current()->text() );
break;
case Qtopia::Manager:
ent.setManager( it.current()->text() );
break;
// personal
case Qtopia::Spouse:
ent.setSpouse( it.current()->text() );
break;
case Qtopia::Children:
ent.setChildren( it.current()->text() );
break;
case Qtopia::Birthday:
ent.setBirthday( it.current()->text() );
break;
case Qtopia::Anniversary:
ent.setAnniversary( it.current()->text() );
break;
case Qtopia::Nickname:
ent.setNickname( it.current()->text() );
break;
default:
break;
}
}
int gender = genderCombo->currentItem();
ent.setGender( QString::number( gender ) );
QString str = txtNote->text();
if ( !str.isNull() )
ent.setNotes( str );
}
void AbEditor::slotNote()
{
- dlgNote->showMaximized();
- if ( !dlgNote->exec() ) {
+ if ( ! QPEApplication::execDialog( &dlgNote ) ) {
// reset the note...
txtNote->setText( ent.notes() );
}
}
void AbEditor::setNameFocus()
{
firstEdit->setFocus();
}
void parseEmailFrom( const QString &txt, QString &strDefaultEmail,
QString &strAll )
{
int where,
start;
if ( txt.isEmpty() )
return;
// find the first
where = txt.find( ',' );
if ( where < 0 ) {
strDefaultEmail = txt;
strAll = txt;
} else {
strDefaultEmail = txt.left( where ).stripWhiteSpace();
strAll = strDefaultEmail;
while ( where > -1 ) {
strAll.append(" ");
start = where;
where = txt.find( ',', where + 1 );
if ( where > - 1 )
strAll.append( txt.mid(start + 1, where - start - 1).stripWhiteSpace() );
else // grab until the end...
strAll.append( txt.right(txt.length() - start - 1).stripWhiteSpace() );
}
}
}
void parseEmailTo( const QString &strDefaultEmail,
const QString &strOtherEmail, QString &strBack )
{
// create a comma dilimeted set of emails...
// use the power of short circuiting...
bool foundDefault = false;
QString strTmp;
int start = 0;
int where;
// start at the beginng.