author | harlekin <harlekin> | 2003-12-20 19:04:26 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-20 19:04:26 (UTC) |
commit | ef3584f1fd410e00d21d26d4ebbb9b6766669086 (patch) (unidiff) | |
tree | ff3088978548a231778faebf91447f8538b1b5d5 | |
parent | d552ce3a94b53ae0fdb226411bd8f9e5bab6596a (diff) | |
download | opie-ef3584f1fd410e00d21d26d4ebbb9b6766669086.zip opie-ef3584f1fd410e00d21d26d4ebbb9b6766669086.tar.gz opie-ef3584f1fd410e00d21d26d4ebbb9b6766669086.tar.bz2 |
get status widget allways on the right place and hide it by default
-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 ) | |||
86 | editAccounts->addTo( settingsMenu ); | 86 | editAccounts->addTo( settingsMenu ); |
87 | 87 | ||
88 | QWidget *view = new QWidget( this ); | 88 | //setCentralWidget( view ); |
89 | setCentralWidget( view ); | 89 | |
90 | QVBox* wrapperBox = new QVBox( this ); | ||
91 | setCentralWidget( wrapperBox ); | ||
92 | |||
93 | QWidget *view = new QWidget( wrapperBox ); | ||
90 | 94 | ||
91 | layout = new QBoxLayout ( view, QBoxLayout::LeftToRight ); | 95 | layout = new QBoxLayout ( view, QBoxLayout::LeftToRight ); |
@@ -95,5 +99,4 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
95 | folderView->setRootIsDecorated( true ); | 99 | folderView->setRootIsDecorated( true ); |
96 | folderView->addColumn( tr( "Mailbox" ) ); | 100 | folderView->addColumn( tr( "Mailbox" ) ); |
97 | //folderView->hide(); | ||
98 | 101 | ||
99 | layout->addWidget( folderView ); | 102 | layout->addWidget( folderView ); |
@@ -108,8 +111,8 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
108 | mailView->setSorting(-1); | 111 | mailView->setSorting(-1); |
109 | 112 | ||
110 | statusWidget = new StatusWidget( view ); | 113 | statusWidget = new StatusWidget( wrapperBox ); |
114 | statusWidget->hide(); | ||
111 | 115 | ||
112 | layout->addWidget( mailView ); | 116 | layout->addWidget( mailView ); |
113 | layout->addWidget( statusWidget ); | ||
114 | layout->setStretchFactor( folderView, 1 ); | 117 | layout->setStretchFactor( folderView, 1 ); |
115 | layout->setStretchFactor( mailView, 2 ); | 118 | layout->setStretchFactor( mailView, 2 ); |