-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index d3b9c34..a0ce6c1 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp @@ -86,6 +86,10 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) editAccounts->addTo( settingsMenu ); - QWidget *view = new QWidget( this ); - setCentralWidget( view ); + //setCentralWidget( view ); + + QVBox* wrapperBox = new QVBox( this ); + setCentralWidget( wrapperBox ); + + QWidget *view = new QWidget( wrapperBox ); layout = new QBoxLayout ( view, QBoxLayout::LeftToRight ); @@ -95,5 +99,4 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) folderView->setRootIsDecorated( true ); folderView->addColumn( tr( "Mailbox" ) ); - //folderView->hide(); layout->addWidget( folderView ); @@ -108,8 +111,8 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) mailView->setSorting(-1); - statusWidget = new StatusWidget( view ); + statusWidget = new StatusWidget( wrapperBox ); + statusWidget->hide(); layout->addWidget( mailView ); - layout->addWidget( statusWidget ); layout->setStretchFactor( folderView, 1 ); layout->setStretchFactor( mailView, 2 ); |