author | harlekin <harlekin> | 2003-12-08 13:37:32 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-08 13:37:32 (UTC) |
commit | 3b37149813d940535b12ba3b1edd938c41804a1b (patch) (unidiff) | |
tree | 0e35a3b28fb147514f22a6a6cb5aaf246e4c5670 /noncore/net/mail/readmailgui.cpp | |
parent | 3d49fc2f7bba9c9e8856e5f4f7ec6c15ef84c252 (diff) | |
download | opie-3b37149813d940535b12ba3b1edd938c41804a1b.zip opie-3b37149813d940535b12ba3b1edd938c41804a1b.tar.gz opie-3b37149813d940535b12ba3b1edd938c41804a1b.tar.bz2 |
beginning of the new mailer
Diffstat (limited to 'noncore/net/mail/readmailgui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/readmailgui.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/noncore/net/mail/readmailgui.cpp b/noncore/net/mail/readmailgui.cpp new file mode 100644 index 0000000..0063070 --- a/dev/null +++ b/noncore/net/mail/readmailgui.cpp | |||
@@ -0,0 +1,29 @@ | |||
1 | #include "readmailgui.h" | ||
2 | #include "defines.h" | ||
3 | #include <qlayout.h> | ||
4 | |||
5 | ReadMailGui::ReadMailGui( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
6 | : QDialog( parent, name, modal, fl ) { | ||
7 | |||
8 | |||
9 | QVBoxLayout * layout = new QVBoxLayout( this ); | ||
10 | QMainWindow * m_mainWindow = new QMainWindow( this ); | ||
11 | m_toolBar = new QToolBar( m_mainWindow ); | ||
12 | m_mainWindow->addToolBar( m_toolBar ); | ||
13 | |||
14 | m_reply = new QAction( tr( "Compose new mail" ), ICON_SENDQUEUED, 0, 0, m_mainWindow ); | ||
15 | m_reply->addTo( m_toolBar ); | ||
16 | |||
17 | m_textWindow = new QTextBrowser( this ); | ||
18 | m_textWindow->setResizePolicy( QScrollView::AutoOneFit ); | ||
19 | |||
20 | layout->addWidget( m_mainWindow ); | ||
21 | layout->addWidget( m_textWindow ); | ||
22 | } | ||
23 | |||
24 | ReadMailGui::~ReadMailGui() { | ||
25 | } | ||
26 | |||
27 | void ReadMailGui::passMessage( const QString & message ) { | ||
28 | m_textWindow->setText( message ); | ||
29 | } | ||