author | harlekin <harlekin> | 2003-12-09 01:05:53 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-09 01:05:53 (UTC) |
commit | 6142ad15ac50090b95bb5d80116c1750ffc515de (patch) (side-by-side diff) | |
tree | 177b72b44446824d6faa13e140ab95a25c931b81 /noncore/net/mail/mainwindow.cpp | |
parent | e372949ac776a7d986cac91b2ff1a5022040d43b (diff) | |
download | opie-6142ad15ac50090b95bb5d80116c1750ffc515de.zip opie-6142ad15ac50090b95bb5d80116c1750ffc515de.tar.gz opie-6142ad15ac50090b95bb5d80116c1750ffc515de.tar.bz2 |
beginning of a view mail part
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 @@ -1,20 +1,21 @@ #include <qlabel.h> #include <qvbox.h> #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 ); toolBar = new QToolBar( this ); menuBar = new QMenuBar( toolBar ); mailMenu = new QPopupMenu( menuBar ); menuBar->insertItem( tr( "Mail" ), mailMenu ); settingsMenu = new QPopupMenu( menuBar ); @@ -129,21 +130,26 @@ void MainWindow::refreshMailView(Maillist*list) item->setFont(bf); } #endif } } 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()); setText(2,mail_data.getDate()); } |