summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp
index e466d9b..cab1a66 100644
--- a/noncore/net/mail/mainwindow.cpp
+++ b/noncore/net/mail/mainwindow.cpp
@@ -48,16 +48,17 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
48 0, 0, this ); 48 0, 0, this );
49 syncFolders->addTo( toolBar ); 49 syncFolders->addTo( toolBar );
50 syncFolders->addTo( mailMenu ); 50 syncFolders->addTo( mailMenu );
51 51
52 showFolders = new QAction( tr( "Show/Hide folders" ), ICON_SHOWFOLDERS, 52 showFolders = new QAction( tr( "Show/Hide folders" ), ICON_SHOWFOLDERS,
53 0, 0, this, 0, true ); 53 0, 0, this, 0, true );
54 showFolders->addTo( toolBar ); 54 showFolders->addTo( toolBar );
55 showFolders->addTo( mailMenu ); 55 showFolders->addTo( mailMenu );
56 showFolders->setOn( true );
56 connect(showFolders, SIGNAL( toggled( bool ) ), 57 connect(showFolders, SIGNAL( toggled( bool ) ),
57 SLOT( slotShowFolders( bool ) ) ); 58 SLOT( slotShowFolders( bool ) ) );
58 59
59 searchMails = new QAction( tr( "Search mails" ), ICON_SEARCHMAILS, 60 searchMails = new QAction( tr( "Search mails" ), ICON_SEARCHMAILS,
60 0, 0, this ); 61 0, 0, this );
61 searchMails->addTo( toolBar ); 62 searchMails->addTo( toolBar );
62 searchMails->addTo( mailMenu ); 63 searchMails->addTo( mailMenu );
63 64
@@ -79,17 +80,17 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
79 setCentralWidget( view ); 80 setCentralWidget( view );
80 81
81 layout = new QBoxLayout ( view, QBoxLayout::LeftToRight ); 82 layout = new QBoxLayout ( view, QBoxLayout::LeftToRight );
82 83
83 folderView = new AccountView( view ); 84 folderView = new AccountView( view );
84 folderView->header()->hide(); 85 folderView->header()->hide();
85 folderView->setRootIsDecorated( false ); 86 folderView->setRootIsDecorated( false );
86 folderView->addColumn( tr( "Mailbox" ) ); 87 folderView->addColumn( tr( "Mailbox" ) );
87 folderView->hide(); 88 //folderView->hide();
88 89
89 layout->addWidget( folderView ); 90 layout->addWidget( folderView );
90 91
91 mailView = new QListView( view ); 92 mailView = new QListView( view );
92 mailView->addColumn( tr( "" ) ); 93 mailView->addColumn( tr( "" ) );
93 mailView->addColumn( tr( "Subject" ),QListView::Manual ); 94 mailView->addColumn( tr( "Subject" ),QListView::Manual );
94 mailView->addColumn( tr( "Sender" ),QListView::Manual ); 95 mailView->addColumn( tr( "Sender" ),QListView::Manual );
95 mailView->addColumn( tr( "Date" )); 96 mailView->addColumn( tr( "Date" ));
@@ -103,16 +104,17 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
103 slotAdjustLayout(); 104 slotAdjustLayout();
104 105
105 connect( mailView, SIGNAL( clicked( QListViewItem * ) ),this, 106 connect( mailView, SIGNAL( clicked( QListViewItem * ) ),this,
106 SLOT( displayMail( QListViewItem * ) ) ); 107 SLOT( displayMail( QListViewItem * ) ) );
107 108
108 connect(folderView, SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*))); 109 connect(folderView, SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*)));
109 110
110 QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); 111 QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) );
112
111} 113}
112 114
113 115
114void MainWindow::slotAdjustLayout() { 116void MainWindow::slotAdjustLayout() {
115 117
116 QWidget *d = QApplication::desktop(); 118 QWidget *d = QApplication::desktop();
117 119
118 if ( d->width() < d->height() ) { 120 if ( d->width() < d->height() ) {