Diffstat (limited to 'noncore/net/mail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index 6f054cc..6e8f4d3 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp @@ -3,12 +3,13 @@ #include <qheader.h> #include <qtimer.h> #include "defines.h" #include "mainwindow.h" +#include "viewmail.h" MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) : QMainWindow( parent, name, flags ) { setCaption( tr( "Opie-Mail" ) ); setToolBarsMovable( false ); @@ -135,13 +136,18 @@ void MainWindow::displayMail(QListViewItem*item) { if (!item) return; qDebug("View mail"); RecMail mail = ((MailListViewItem*)item)->data(); QString body = folderView->fetchBody(mail); - qDebug(body); + ViewMail readMail( this ); + readMail.setMailInfo( mail.getFrom(), "", mail.getSubject(), "", "", body ); + readMail.showMaximized(); + readMail.exec(); + + qDebug(body ); } void MailListViewItem::showEntry() { setText(0,mail_data.getSubject()); setText(1,mail_data.getFrom()); |