author | harlekin <harlekin> | 2003-12-20 19:04:26 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-20 19:04:26 (UTC) |
commit | ef3584f1fd410e00d21d26d4ebbb9b6766669086 (patch) (side-by-side diff) | |
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 @@ -76,50 +76,53 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) SLOT( slotDeleteMail() ) ); editSettings = new QAction( tr( "Edit settings" ), ICON_EDITSETTINGS, 0, 0, this ); editSettings->addTo( settingsMenu ); connect( editSettings, SIGNAL( activated() ), SLOT( slotEditSettings() ) ); editAccounts = new QAction( tr( "Configure accounts" ), ICON_EDITACCOUNTS, 0, 0, this ); 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 ); folderView = new AccountView( view ); folderView->header()->hide(); folderView->setRootIsDecorated( true ); folderView->addColumn( tr( "Mailbox" ) ); - //folderView->hide(); layout->addWidget( folderView ); mailView = new QListView( view ); mailView->addColumn( tr( "" ) ); mailView->addColumn( tr( "Subject" ),QListView::Manual ); mailView->addColumn( tr( "Sender" ),QListView::Manual ); mailView->addColumn( tr( "Size" ),QListView::Manual); mailView->addColumn( tr( "Date" )); mailView->setAllColumnsShowFocus(true); 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 ); slotAdjustLayout(); connect( mailView, SIGNAL( clicked( QListViewItem * ) ),this, SLOT( displayMail( QListViewItem * ) ) ); connect(folderView, SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*))); QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |