summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mailit/writemail.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/mailit/writemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mailit/writemail.cpp28
1 files changed, 18 insertions, 10 deletions
diff --git a/noncore/unsupported/mailit/writemail.cpp b/noncore/unsupported/mailit/writemail.cpp
index 0336c83..dcf0c6e 100644
--- a/noncore/unsupported/mailit/writemail.cpp
+++ b/noncore/unsupported/mailit/writemail.cpp
@@ -125,3 +125,3 @@ void WriteMail::init()
grid->addMultiCellWidget( emailInput, 2, 2, 0, 2);
- QWhatsThis::add(recipientsBox,QWidget::tr("Enter your mail text here"));
+ QWhatsThis::add(emailInput,QWidget::tr("Enter your mail text here"));
@@ -134,3 +134,3 @@ void WriteMail::init()
grid->addMultiCellWidget( addressView, 3, 3, 0, 2);
- QWhatsThis::add(recipientsBox,QWidget::tr("Chose the recipients from this list"));
+ QWhatsThis::add(recipientsBox,QWidget::tr("Choose the recipients from this list"));
@@ -150,3 +150,2 @@ void WriteMail::reject()
-// need to insert date
void WriteMail::accept()
@@ -254,2 +253,3 @@ void WriteMail::reply(Email replyMail, bool replyAll)
int pos;
+ QString ccRecipients;
@@ -259,4 +259,14 @@ void WriteMail::reply(Email replyMail, bool replyAll)
toInput->setText(mail.fromMail);
- //replyAll ? ccInput->setText(mail.c)
+ if (replyAll)
+ {
+ for (QStringList::Iterator it = mail.carbonCopies.begin();it != mail.carbonCopies.end(); ++it)
+ {
+ ccRecipients.append(*it);
+ ccRecipients.append(";");
+ }
+ ccRecipients.truncate(ccRecipients.length()-1); //no ; at the end
+ ccInput->setText(ccRecipients);
+ }
+
addRecipients(replyAll);
@@ -323,6 +333,5 @@ void WriteMail::addRecipients()
{
-
- addRecipients(false);
+ toInput->isVisible() ? addRecipients(false) : addRecipients(true);
}
-
+
void WriteMail::addRecipients(bool ccField)
@@ -337,5 +346,5 @@ void WriteMail::addRecipients(bool ccField)
if (recipients == "") {
- recipients = item->text(0);
+ recipients = item->text(1);
} else {
- recipients += "; " + item->text(0);
+ recipients += "; " + item->text(1);
}
@@ -378,3 +387,2 @@ void WriteMail::newMail()
emailInput->clear();
- //to clear selected
setAddressList(addressList);