Diffstat (limited to 'noncore/net/mailit/readmail.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mailit/readmail.cpp | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/noncore/net/mailit/readmail.cpp b/noncore/net/mailit/readmail.cpp index 7cd3e09..dc98a6f 100644 --- a/noncore/net/mailit/readmail.cpp +++ b/noncore/net/mailit/readmail.cpp @@ -61,4 +61,8 @@ void ReadMail::init() connect(replyButton, SIGNAL(activated()), this, SLOT(reply()) ); + forwardButton = new QAction( tr( "Forward" ), Resource::loadPixmap( "mailit/forward" ), + QString::null, 0, this, 0 ); + connect(forwardButton, SIGNAL(activated()), this, SLOT(forward()) ); + previousButton = new QAction( tr( "Previous" ), Resource::loadPixmap( "back" ), QString::null, 0, this, 0 ); connect( previousButton, SIGNAL( activated() ), this, SLOT( previous() ) ); @@ -108,8 +112,13 @@ void ReadMail::updateView() replyButton->removeFrom(mailMenu); replyButton->removeFrom(bar); + forwardButton->removeFrom(mailMenu); + forwardButton->removeFrom(bar); if (inbox == TRUE) { replyButton->addTo(bar); replyButton->addTo(mailMenu); + forwardButton->addTo(bar); + forwardButton->addTo(mailMenu); + if (!mail->downloaded) { @@ -146,4 +155,11 @@ void ReadMail::updateView() text += *it + " "; } + + text +="<br><b>CC: </b>"; + for (QStringList::Iterator it = mail->carbonCopies.begin(); + it != mail->carbonCopies.end(); ++it ) { + text += *it + " "; + } + text += "<br>" + mail->date; @@ -203,4 +219,12 @@ void ReadMail::updateView() text += *it + " "; } + + text += "\nCC: "; + for (QStringList::Iterator it = mail->carbonCopies.begin(); + it != mail->carbonCopies.end(); ++it ) { + text += *it + " "; + } + + text += "\nDate: " + mail->date + "\n"; if (mail->files.count() > 0) { @@ -324,4 +348,10 @@ void ReadMail::viewAttatchments() void ReadMail::reply() { - emit replyRequested(*mail); + emit replyRequested(*mail, (bool&)TRUE); } + +void ReadMail::forward() +{ + emit forwardRequested(*mail); +} + |