Diffstat (limited to 'noncore/net/mail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index bcf0866..c23ad3f 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp | |||
@@ -98,49 +98,50 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
98 | mailView->addColumn( tr( "" ) ); | 98 | mailView->addColumn( tr( "" ) ); |
99 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); | 99 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); |
100 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); | 100 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); |
101 | mailView->addColumn( tr( "Size" ),QListView::Manual); | 101 | mailView->addColumn( tr( "Size" ),QListView::Manual); |
102 | mailView->addColumn( tr( "Date" )); | 102 | mailView->addColumn( tr( "Date" )); |
103 | mailView->setAllColumnsShowFocus(true); | 103 | mailView->setAllColumnsShowFocus(true); |
104 | mailView->setSorting(-1); | 104 | mailView->setSorting(-1); |
105 | 105 | ||
106 | statusWidget = new StatusWidget( wrapperBox ); | 106 | statusWidget = new StatusWidget( wrapperBox ); |
107 | statusWidget->hide(); | 107 | statusWidget->hide(); |
108 | 108 | ||
109 | layout->addWidget( mailView ); | 109 | layout->addWidget( mailView ); |
110 | layout->setStretchFactor( folderView, 1 ); | 110 | layout->setStretchFactor( folderView, 1 ); |
111 | layout->setStretchFactor( mailView, 2 ); | 111 | layout->setStretchFactor( mailView, 2 ); |
112 | 112 | ||
113 | slotAdjustLayout(); | 113 | slotAdjustLayout(); |
114 | 114 | ||
115 | QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); | 115 | QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); |
116 | QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); | 116 | QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); |
117 | 117 | ||
118 | connect( mailView, SIGNAL( mouseButtonClicked(int,QListViewItem*,const QPoint&,int) ),this, | 118 | connect( mailView, SIGNAL( mouseButtonClicked(int,QListViewItem*,const QPoint&,int) ),this, |
119 | SLOT( mailLeftClicked(int,QListViewItem*,const QPoint&,int) ) ); | 119 | SLOT( mailLeftClicked(int,QListViewItem*,const QPoint&,int) ) ); |
120 | connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, | 120 | connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, |
121 | SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); | 121 | SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); |
122 | connect(folderView, SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*))); | 122 | connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)), |
123 | this,SLOT(refreshMailView(const QValueList<RecMailP>&))); | ||
123 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); | 124 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); |
124 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); | 125 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); |
125 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); | 126 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); |
126 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); | 127 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); |
127 | // Added by Stefan Eilers to allow starting by addressbook.. | 128 | // Added by Stefan Eilers to allow starting by addressbook.. |
128 | // copied from old mail2 | 129 | // copied from old mail2 |
129 | #if !defined(QT_NO_COP) | 130 | #if !defined(QT_NO_COP) |
130 | connect( qApp, SIGNAL( appMessage(const QCString&,const QByteArray&) ), | 131 | connect( qApp, SIGNAL( appMessage(const QCString&,const QByteArray&) ), |
131 | this, SLOT( appMessage(const QCString&,const QByteArray&) ) ); | 132 | this, SLOT( appMessage(const QCString&,const QByteArray&) ) ); |
132 | #endif | 133 | #endif |
133 | 134 | ||
134 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 135 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |
135 | } | 136 | } |
136 | 137 | ||
137 | MainWindow::~MainWindow() | 138 | MainWindow::~MainWindow() |
138 | { | 139 | { |
139 | } | 140 | } |
140 | 141 | ||
141 | void MainWindow::appMessage(const QCString &, const QByteArray &) | 142 | void MainWindow::appMessage(const QCString &, const QByteArray &) |
142 | { | 143 | { |
143 | qDebug("appMessage not reached"); | 144 | qDebug("appMessage not reached"); |
144 | } | 145 | } |
145 | 146 | ||
146 | void MainWindow::slotAdjustLayout() { | 147 | void MainWindow::slotAdjustLayout() { |
@@ -156,60 +157,60 @@ void MainWindow::slotAdjustLayout() { | |||
156 | 157 | ||
157 | void MainWindow::slotAdjustColumns() | 158 | void MainWindow::slotAdjustColumns() |
158 | { | 159 | { |
159 | bool hidden = folderView->isHidden(); | 160 | bool hidden = folderView->isHidden(); |
160 | if ( hidden ) folderView->show(); | 161 | if ( hidden ) folderView->show(); |
161 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 162 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
162 | if ( hidden ) folderView->hide(); | 163 | if ( hidden ) folderView->hide(); |
163 | 164 | ||
164 | mailView->setColumnWidth( 0, 10 ); | 165 | mailView->setColumnWidth( 0, 10 ); |
165 | mailView->setColumnWidth( 1, mailView->visibleWidth() - 130 ); | 166 | mailView->setColumnWidth( 1, mailView->visibleWidth() - 130 ); |
166 | mailView->setColumnWidth( 2, 80 ); | 167 | mailView->setColumnWidth( 2, 80 ); |
167 | mailView->setColumnWidth( 3, 50 ); | 168 | mailView->setColumnWidth( 3, 50 ); |
168 | mailView->setColumnWidth( 4, 50 ); | 169 | mailView->setColumnWidth( 4, 50 ); |
169 | } | 170 | } |
170 | 171 | ||
171 | void MainWindow::slotEditSettings() | 172 | void MainWindow::slotEditSettings() |
172 | { | 173 | { |
173 | } | 174 | } |
174 | 175 | ||
175 | void MainWindow::slotShowFolders( bool ) | 176 | void MainWindow::slotShowFolders( bool ) |
176 | { | 177 | { |
177 | qDebug( "slotShowFolders not reached" ); | 178 | qDebug( "slotShowFolders not reached" ); |
178 | } | 179 | } |
179 | 180 | ||
180 | void MainWindow::refreshMailView(QList<RecMail>*) | 181 | void MainWindow::refreshMailView(const QValueList<RecMailP>&) |
181 | { | 182 | { |
182 | qDebug( "refreshMailView not reached" ); | 183 | qDebug( "refreshMailView not reached" ); |
183 | } | 184 | } |
184 | 185 | ||
185 | void MainWindow::mailLeftClicked(int, QListViewItem *,const QPoint&,int ) | 186 | void MainWindow::mailLeftClicked(int, QListViewItem *,const QPoint&,int ) |
186 | { | 187 | { |
187 | qDebug( "mailLeftClicked not reached" ); | 188 | qDebug( "mailLeftClicked not reached" ); |
188 | } | 189 | } |
189 | 190 | ||
190 | void MainWindow::displayMail() | 191 | void MainWindow::displayMail() |
191 | { | 192 | { |
192 | qDebug("displayMail not reached"); | 193 | qDebug("displayMail not reached"); |
193 | } | 194 | } |
194 | 195 | ||
195 | void MainWindow::slotDeleteMail() | 196 | void MainWindow::slotDeleteMail() |
196 | { | 197 | { |
197 | qDebug("deleteMail not reached"); | 198 | qDebug("deleteMail not reached"); |
198 | } | 199 | } |
199 | 200 | ||
200 | void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int ) | 201 | void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int ) |
201 | { | 202 | { |
202 | qDebug("mailHold not reached"); | 203 | qDebug("mailHold not reached"); |
203 | } | 204 | } |
204 | 205 | ||
205 | void MainWindow::slotSendQueued() | 206 | void MainWindow::slotSendQueued() |
206 | { | 207 | { |
207 | } | 208 | } |
208 | 209 | ||
209 | void MainWindow::slotEditAccounts() | 210 | void MainWindow::slotEditAccounts() |
210 | { | 211 | { |
211 | } | 212 | } |
212 | 213 | ||
213 | void MainWindow::slotComposeMail() | 214 | void MainWindow::slotComposeMail() |
214 | { | 215 | { |
215 | } | 216 | } |