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 @@ | |||
3 | #include <qheader.h> | 3 | #include <qheader.h> |
4 | #include <qtimer.h> | 4 | #include <qtimer.h> |
5 | 5 | ||
6 | 6 | ||
7 | #include "defines.h" | 7 | #include "defines.h" |
8 | #include "mainwindow.h" | 8 | #include "mainwindow.h" |
9 | #include "viewmail.h" | ||
9 | 10 | ||
10 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | 11 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) |
11 | : QMainWindow( parent, name, flags ) | 12 | : QMainWindow( parent, name, flags ) |
12 | { | 13 | { |
13 | setCaption( tr( "Opie-Mail" ) ); | 14 | setCaption( tr( "Opie-Mail" ) ); |
14 | setToolBarsMovable( false ); | 15 | setToolBarsMovable( false ); |
@@ -135,13 +136,18 @@ void MainWindow::displayMail(QListViewItem*item) | |||
135 | { | 136 | { |
136 | if (!item) return; | 137 | if (!item) return; |
137 | qDebug("View mail"); | 138 | qDebug("View mail"); |
138 | RecMail mail = ((MailListViewItem*)item)->data(); | 139 | RecMail mail = ((MailListViewItem*)item)->data(); |
139 | QString body = folderView->fetchBody(mail); | 140 | QString body = folderView->fetchBody(mail); |
140 | 141 | ||
141 | qDebug(body); | 142 | ViewMail readMail( this ); |
143 | readMail.setMailInfo( mail.getFrom(), "", mail.getSubject(), "", "", body ); | ||
144 | readMail.showMaximized(); | ||
145 | readMail.exec(); | ||
146 | |||
147 | qDebug(body ); | ||
142 | } | 148 | } |
143 | 149 | ||
144 | void MailListViewItem::showEntry() | 150 | void MailListViewItem::showEntry() |
145 | { | 151 | { |
146 | setText(0,mail_data.getSubject()); | 152 | setText(0,mail_data.getSubject()); |
147 | setText(1,mail_data.getFrom()); | 153 | setText(1,mail_data.getFrom()); |