-rw-r--r-- | kmicromail/mainwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 78377ea..ddc7b3e 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -86,38 +86,38 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
86 | //setCentralWidget( view ); | 86 | //setCentralWidget( view ); |
87 | 87 | ||
88 | QVBox* wrapperBox = new QVBox( this ); | 88 | QVBox* wrapperBox = new QVBox( this ); |
89 | setCentralWidget( wrapperBox ); | 89 | setCentralWidget( wrapperBox ); |
90 | 90 | ||
91 | // QWidget *view = new QWidget( wrapperBox ); | 91 | // QWidget *view = new QWidget( wrapperBox ); |
92 | KDGanttMinimizeSplitter* split = new KDGanttMinimizeSplitter( Qt::Horizontal, wrapperBox); | 92 | KDGanttMinimizeSplitter* split = new KDGanttMinimizeSplitter( Qt::Horizontal, wrapperBox); |
93 | split->setMinimizeDirection( KDGanttMinimizeSplitter::Left); | 93 | split->setMinimizeDirection( KDGanttMinimizeSplitter::Left); |
94 | //layout = new QBoxLayout ( split, QBoxLayout::LeftToRight ); | 94 | //layout = new QBoxLayout ( split, QBoxLayout::LeftToRight ); |
95 | 95 | ||
96 | folderView = new AccountView( split ); | 96 | folderView = new AccountView( split ); |
97 | folderView->header()->hide(); | 97 | folderView->header()->hide(); |
98 | folderView->setRootIsDecorated( true ); | 98 | folderView->setRootIsDecorated( false ); |
99 | folderView->addColumn( tr( "Mailbox" ) ); | 99 | folderView->addColumn( tr( "Mailbox" ) ); |
100 | 100 | ||
101 | //layout->addWidget( folderView ); | 101 | //layout->addWidget( folderView ); |
102 | 102 | ||
103 | mailView = new QListView( split ); | 103 | mailView = new QListView( split ); |
104 | mailView->addColumn( tr( "" ) ); | 104 | mailView->addColumn( tr( " " ) ); |
105 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); | 105 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); |
106 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); | 106 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); |
107 | mailView->addColumn( tr( "Size" ),QListView::Manual); | 107 | mailView->addColumn( tr( "Size" ),QListView::Manual); |
108 | mailView->addColumn( tr( "Date" )); | 108 | mailView->addColumn( tr( "Date" ),QListView::Manual); |
109 | mailView->setAllColumnsShowFocus(true); | 109 | mailView->setAllColumnsShowFocus(true); |
110 | //mailView->setSorting(-1); | 110 | //mailView->setSorting(-1); |
111 | 111 | mailView->setRootIsDecorated( false ); | |
112 | statusWidget = new StatusWidget( wrapperBox ); | 112 | statusWidget = new StatusWidget( wrapperBox ); |
113 | statusWidget->hide(); | 113 | statusWidget->hide(); |
114 | 114 | ||
115 | //layout->addWidget( mailView ); | 115 | //layout->addWidget( mailView ); |
116 | //layout->setStretchFactor( folderView, 1 ); | 116 | //layout->setStretchFactor( folderView, 1 ); |
117 | //layout->setStretchFactor( mailView, 2 ); | 117 | //layout->setStretchFactor( mailView, 2 ); |
118 | 118 | ||
119 | slotAdjustLayout(); | 119 | slotAdjustLayout(); |
120 | #ifndef DESKTOP_VERSION | 120 | #ifndef DESKTOP_VERSION |
121 | QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); | 121 | QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); |
122 | QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); | 122 | QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); |
123 | #endif | 123 | #endif |
@@ -167,25 +167,25 @@ void MainWindow::slotAdjustLayout() { | |||
167 | } | 167 | } |
168 | */ | 168 | */ |
169 | } | 169 | } |
170 | 170 | ||
171 | void MainWindow::slotAdjustColumns() | 171 | void MainWindow::slotAdjustColumns() |
172 | { | 172 | { |
173 | bool hidden = folderView->isHidden(); | 173 | bool hidden = folderView->isHidden(); |
174 | if ( hidden ) folderView->show(); | 174 | if ( hidden ) folderView->show(); |
175 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 175 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
176 | if ( hidden ) folderView->hide(); | 176 | if ( hidden ) folderView->hide(); |
177 | 177 | ||
178 | mailView->setColumnWidth( 0, 10 ); | 178 | mailView->setColumnWidth( 0, 10 ); |
179 | mailView->setColumnWidth( 1, mailView->visibleWidth() - 130 ); | 179 | mailView->setColumnWidth( 1, 80 ); |
180 | mailView->setColumnWidth( 2, 80 ); | 180 | mailView->setColumnWidth( 2, 80 ); |
181 | mailView->setColumnWidth( 3, 50 ); | 181 | mailView->setColumnWidth( 3, 50 ); |
182 | mailView->setColumnWidth( 4, 50 ); | 182 | mailView->setColumnWidth( 4, 50 ); |
183 | } | 183 | } |
184 | 184 | ||
185 | void MainWindow::slotEditSettings() | 185 | void MainWindow::slotEditSettings() |
186 | { | 186 | { |
187 | } | 187 | } |
188 | 188 | ||
189 | void MainWindow::slotShowFolders( bool ) | 189 | void MainWindow::slotShowFolders( bool ) |
190 | { | 190 | { |
191 | qDebug("not implemented: "); | 191 | qDebug("not implemented: "); |