From 3b37149813d940535b12ba3b1edd938c41804a1b Mon Sep 17 00:00:00 2001 From: harlekin Date: Mon, 08 Dec 2003 13:37:32 +0000 Subject: beginning of the new mailer --- (limited to 'noncore/net/mail/readmailgui.cpp') 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 @@ +#include "readmailgui.h" +#include "defines.h" +#include + +ReadMailGui::ReadMailGui( QWidget* parent, const char* name, bool modal, WFlags fl ) +: QDialog( parent, name, modal, fl ) { + + +QVBoxLayout * layout = new QVBoxLayout( this ); +QMainWindow * m_mainWindow = new QMainWindow( this ); +m_toolBar = new QToolBar( m_mainWindow ); +m_mainWindow->addToolBar( m_toolBar ); + +m_reply = new QAction( tr( "Compose new mail" ), ICON_SENDQUEUED, 0, 0, m_mainWindow ); +m_reply->addTo( m_toolBar ); + +m_textWindow = new QTextBrowser( this ); +m_textWindow->setResizePolicy( QScrollView::AutoOneFit ); + +layout->addWidget( m_mainWindow ); +layout->addWidget( m_textWindow ); +} + +ReadMailGui::~ReadMailGui() { +} + +void ReadMailGui::passMessage( const QString & message ) { + m_textWindow->setText( message ); +} -- cgit v0.9.0.2