author | harlekin <harlekin> | 2003-12-13 21:49:53 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-13 21:49:53 (UTC) |
commit | 8290f1a524b6f0051e49f8045d24e508d46868e2 (patch) (side-by-side diff) | |
tree | 6c2acfab918834961c82558224c28b00077bc86f /noncore/net/mail/viewmail.cpp | |
parent | c0e86973b0cd2d01163ccf60340c8d295aa645f4 (diff) | |
download | opie-8290f1a524b6f0051e49f8045d24e508d46868e2.zip opie-8290f1a524b6f0051e49f8045d24e508d46868e2.tar.gz opie-8290f1a524b6f0051e49f8045d24e508d46868e2.tar.bz2 |
possible to show all kind of text attachemnts now
Diffstat (limited to 'noncore/net/mail/viewmail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/viewmail.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp index c24d5d3..a73dac5 100644 --- a/noncore/net/mail/viewmail.cpp +++ b/noncore/net/mail/viewmail.cpp @@ -10,6 +10,7 @@ #include "settings.h" #include "composemail.h" #include "viewmail.h" +#include "abstractmail.h" AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&file,const QString&desc,int num) : QListViewItem(parent,after),_partNum(num) @@ -130,12 +131,11 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int break ; case 1: - qDebug( QString( "Test selected" ).arg( ( ( AttachItem* )item )->Partnumber() ) ); if ( ( ( AttachItem* )item )->Partnumber() == -1 ) { - setText(); - } else { - browser->setText( ( m_body.Parts()[( ( AttachItem* )item )->Partnumber() ] ).Identifier() ); + setText(); + } else { + browser->setText( m_recMail.Wrapper()->fetchPart( m_recMail, m_body.Parts()[ ( ( AttachItem* )item )->Partnumber() ] ) ); } break; } @@ -145,6 +145,8 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int void ViewMail::setMail( RecMail mail ) { +m_recMail = mail; + m_mail[0] = mail.getFrom(); m_mail[1] = mail.getSubject(); m_mail[3] = mail.getDate(); |