summaryrefslogtreecommitdiff
authorconber <conber>2002-06-19 13:58:18 (UTC)
committer conber <conber>2002-06-19 13:58:18 (UTC)
commitdee5f6c5a3bd982913d0b234fb9392ce68d5df63 (patch) (unidiff)
tree8a3c2d374d622234b7cf67648c8c4e31a2b530b6
parent230cdc6fd89f9e52859633816f554512cd2121e0 (diff)
downloadopie-dee5f6c5a3bd982913d0b234fb9392ce68d5df63.zip
opie-dee5f6c5a3bd982913d0b234fb9392ce68d5df63.tar.gz
opie-dee5f6c5a3bd982913d0b234fb9392ce68d5df63.tar.bz2
some small fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/composerbase.cpp8
-rw-r--r--noncore/unsupported/mail2/configdiag.cpp20
-rw-r--r--noncore/unsupported/mail2/configdiag.h2
-rw-r--r--noncore/unsupported/mail2/configdiagbase.ui11
-rw-r--r--noncore/unsupported/mail2/mainwindowbase.cpp8
5 files changed, 8 insertions, 41 deletions
diff --git a/noncore/unsupported/mail2/composerbase.cpp b/noncore/unsupported/mail2/composerbase.cpp
index ff00a73..c456ae5 100644
--- a/noncore/unsupported/mail2/composerbase.cpp
+++ b/noncore/unsupported/mail2/composerbase.cpp
@@ -6,69 +6,69 @@
6#include <qaction.h> 6#include <qaction.h>
7#include <qlabel.h> 7#include <qlabel.h>
8#include <qvbox.h> 8#include <qvbox.h>
9 9
10#include <qpe/qpetoolbar.h> 10#include <qpe/qpetoolbar.h>
11#include <qpe/qpemenubar.h> 11#include <qpe/qpemenubar.h>
12#include <qpe/resource.h> 12#include <qpe/resource.h>
13 13
14#include "listviewplus.h" 14#include "listviewplus.h"
15#include "composerbase.h" 15#include "composerbase.h"
16 16
17ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl) 17ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl)
18 : QMainWindow(parent, name, fl) 18 : QMainWindow(parent, name, fl)
19{ 19{
20 setCaption(tr("Compose Message")); 20 setCaption(tr("Compose Message"));
21 setToolBarsMovable(false); 21 setToolBarsMovable(false);
22 22
23 toolbar = new QPEToolBar(this); 23 toolbar = new QPEToolBar(this);
24 menubar = new QPEMenuBar( toolbar ); 24 menubar = new QPEMenuBar( toolbar );
25 mailmenu = new QPopupMenu( menubar ); 25 mailmenu = new QPopupMenu( menubar );
26 menubar->insertItem( tr( "Mail" ), mailmenu ); 26 menubar->insertItem( tr( "Mail" ), mailmenu );
27 addToolBar(toolbar); 27 addToolBar(toolbar);
28 toolbar->setHorizontalStretchable(true); 28 toolbar->setHorizontalStretchable(true);
29 29
30 QLabel *spacer = new QLabel(toolbar);
31 spacer->setBackgroundMode(QWidget::PaletteButton);
32 toolbar->setStretchableWidget(spacer);
33
30 sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this); 34 sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this);
31 sendmail->addTo(toolbar); 35 sendmail->addTo(toolbar);
32 sendmail->addTo(mailmenu); 36 sendmail->addTo(mailmenu);
33 37
34 queuemail = new QAction(tr("Queue the mail"), QIconSet(Resource::loadPixmap("mail/sendall")), 0, 0, this); 38 queuemail = new QAction(tr("Queue the mail"), QIconSet(Resource::loadPixmap("mail/sendall")), 0, 0, this);
35 queuemail->addTo(toolbar); 39 queuemail->addTo(toolbar);
36 queuemail->addTo(mailmenu); 40 queuemail->addTo(mailmenu);
37 41
38 attachfile = new QAction(tr("Attach a file"), QIconSet(Resource::loadPixmap("mail/attach")), 0, 0, this, 0, true); 42 attachfile = new QAction(tr("Attach a file"), QIconSet(Resource::loadPixmap("mail/attach")), 0, 0, this, 0, true);
39 attachfile->addTo(toolbar); 43 attachfile->addTo(toolbar);
40 attachfile->addTo(mailmenu); 44 attachfile->addTo(mailmenu);
41 connect(attachfile, SIGNAL(toggled(bool)), SLOT(slotAttachfileChanged(bool))); 45 connect(attachfile, SIGNAL(toggled(bool)), SLOT(slotAttachfileChanged(bool)));
42 46
43 addressbook = new QAction(tr("Addressbook"), QIconSet(Resource::loadPixmap("mail/addbook")), 0, 0, this); 47 addressbook = new QAction(tr("Addressbook"), QIconSet(Resource::loadPixmap("mail/addbook")), 0, 0, this);
44 addressbook->addTo(toolbar); 48 addressbook->addTo(toolbar);
45 addressbook->addTo(mailmenu); 49 addressbook->addTo(mailmenu);
46 50
47 QLabel *spacer = new QLabel(toolbar);
48 spacer->setBackgroundMode(QWidget::PaletteButton);
49 toolbar->setStretchableWidget(spacer);
50
51 abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); 51 abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this);
52 abort->addTo(toolbar); 52 abort->addTo(toolbar);
53 abort->addTo(mailmenu); 53 abort->addTo(mailmenu);
54 54
55 QWidget *main = new QWidget(this); 55 QWidget *main = new QWidget(this);
56 setCentralWidget(main); 56 setCentralWidget(main);
57 57
58 QGridLayout *layout = new QGridLayout(main); 58 QGridLayout *layout = new QGridLayout(main);
59 59
60 fromBox = new QComboBox(main); 60 fromBox = new QComboBox(main);
61 fromBox->insertItem(tr("From"), POPUP_FROM_FROM); 61 fromBox->insertItem(tr("From"), POPUP_FROM_FROM);
62 fromBox->insertItem(tr("Reply"), POPUP_FROM_REPLYTO); 62 fromBox->insertItem(tr("Reply"), POPUP_FROM_REPLYTO);
63 layout->addWidget(fromBox, 0, 0); 63 layout->addWidget(fromBox, 0, 0);
64 64
65 connect(fromBox, SIGNAL(activated(int)), SLOT(slotFromMenuChanged(int))); 65 connect(fromBox, SIGNAL(activated(int)), SLOT(slotFromMenuChanged(int)));
66 66
67 QHBoxLayout *fromLayout = new QHBoxLayout(); 67 QHBoxLayout *fromLayout = new QHBoxLayout();
68 layout->addLayout(fromLayout, 0, 1); 68 layout->addLayout(fromLayout, 0, 1);
69 69
70 from = new QComboBox(main); 70 from = new QComboBox(main);
71 fromLayout->addWidget(from); 71 fromLayout->addWidget(from);
72 72
73 replyto = new QLineEdit(main); 73 replyto = new QLineEdit(main);
74 replyto->hide(); 74 replyto->hide();
diff --git a/noncore/unsupported/mail2/configdiag.cpp b/noncore/unsupported/mail2/configdiag.cpp
index b89b937..e2b2f13 100644
--- a/noncore/unsupported/mail2/configdiag.cpp
+++ b/noncore/unsupported/mail2/configdiag.cpp
@@ -1,77 +1,74 @@
1#include <qmessagebox.h> 1#include <qmessagebox.h>
2#include <qpushbutton.h> 2#include <qpushbutton.h>
3#include <qtoolbutton.h> 3#include <qtoolbutton.h>
4#include <qgroupbox.h> 4#include <qgroupbox.h>
5#include <qcheckbox.h> 5#include <qcheckbox.h>
6#include <qspinbox.h> 6#include <qspinbox.h>
7#include <qheader.h> 7#include <qheader.h>
8#include <qtimer.h> 8#include <qtimer.h>
9#include <qlabel.h> 9#include <qlabel.h>
10 10
11#include <qpe/resource.h> 11#include <qpe/resource.h>
12#include <qpe/config.h> 12#include <qpe/config.h>
13 13
14#include "accounteditor.h" 14#include "accounteditor.h"
15#include "zaurusstuff.h"
16#include "configdiag.h" 15#include "configdiag.h"
17#include "defines.h" 16#include "defines.h"
18 17
19AccountListItem::AccountListItem(QListView *parent, Account &account) 18AccountListItem::AccountListItem(QListView *parent, Account &account)
20 : QListViewItem(parent), _account(account) 19 : QListViewItem(parent), _account(account)
21{ 20{
22 QString displayText; 21 QString displayText;
23 if (!_account.realName().isEmpty() && !_account.email().isEmpty()) 22 if (!_account.realName().isEmpty() && !_account.email().isEmpty())
24 setText(0, _account.realName() + " <" + _account.email() + ">"); 23 setText(0, _account.realName() + " <" + _account.email() + ">");
25 else if (_account.realName().isEmpty() && !_account.email().isEmpty()) 24 else if (_account.realName().isEmpty() && !_account.email().isEmpty())
26 setText(0, _account.email()); 25 setText(0, _account.email());
27 else if (!_account.realName().isEmpty() && _account.email().isEmpty()) 26 else if (!_account.realName().isEmpty() && _account.email().isEmpty())
28 setText(0, _account.realName()); 27 setText(0, _account.realName());
29 else 28 else
30 setText(0, QObject::tr("(no name)")); 29 setText(0, QObject::tr("(no name)"));
31 30
32 setPixmap(0, Resource::loadPixmap("mail/inbox")); 31 setPixmap(0, Resource::loadPixmap("mail/inbox"));
33} 32}
34 33
35ConfigDiag::ConfigDiag(QWidget *parent, const char *name, bool modal, WFlags fl) 34ConfigDiag::ConfigDiag(QWidget *parent, const char *name, bool modal, WFlags fl)
36 : ConfigDiagBase(parent, name, modal, fl) 35 : ConfigDiagBase(parent, name, modal, fl)
37{ 36{
38 _configBenD = new Config("mail"); 37 _configBenD = new Config("mail");
39 _configBenD->setGroup("Settings"); 38 _configBenD->setGroup("Settings");
40 disabled->setChecked(_configBenD->readBoolEntry("Disabled", false)); 39 disabled->setChecked(_configBenD->readBoolEntry("Disabled", false));
41 playSound->setChecked(_configBenD->readBoolEntry("PlaySound", false)); 40 playSound->setChecked(_configBenD->readBoolEntry("PlaySound", false));
42 blinkLed->setChecked(_configBenD->readBoolEntry("BlinkLed", true)); 41 blinkLed->setChecked(_configBenD->readBoolEntry("BlinkLed", true));
43 checkDelay->setValue(_configBenD->readNumEntry("CheckDelay", 5)); 42 checkDelay->setValue(_configBenD->readNumEntry("CheckDelay", 5));
44 43
45 accountList->header()->hide(); 44 accountList->header()->hide();
46 disclaimer->setText(disclaimer->text().arg(VERSION)); 45 disclaimer->setText(disclaimer->text().arg(VERSION));
47 46
48 connect(accountNew, SIGNAL(clicked()), SLOT(slotNewAccount())); 47 connect(accountNew, SIGNAL(clicked()), SLOT(slotNewAccount()));
49 connect(accountEdit, SIGNAL(clicked()), SLOT(slotEditAccount())); 48 connect(accountEdit, SIGNAL(clicked()), SLOT(slotEditAccount()));
50 connect(accountDelete, SIGNAL(clicked()), SLOT(slotDelAccount())); 49 connect(accountDelete, SIGNAL(clicked()), SLOT(slotDelAccount()));
51 50
52 connect(testbutton, SIGNAL(clicked()), SLOT(slotTestSettings()));
53
54 slotFillLists(); 51 slotFillLists();
55} 52}
56 53
57void ConfigDiag::accept() 54void ConfigDiag::accept()
58{ 55{
59 _configBenD->setGroup("Settings"); 56 _configBenD->setGroup("Settings");
60 _configBenD->writeEntry("Disabled", disabled->isChecked()); 57 _configBenD->writeEntry("Disabled", disabled->isChecked());
61 _configBenD->writeEntry("PlaySound", playSound->isChecked()); 58 _configBenD->writeEntry("PlaySound", playSound->isChecked());
62 _configBenD->writeEntry("BlinkLed", blinkLed->isChecked()); 59 _configBenD->writeEntry("BlinkLed", blinkLed->isChecked());
63 _configBenD->writeEntry("CheckDelay", checkDelay->value()); 60 _configBenD->writeEntry("CheckDelay", checkDelay->value());
64 _configBenD->write(); 61 _configBenD->write();
65 62
66 QDialog::accept(); 63 QDialog::accept();
67} 64}
68 65
69void ConfigDiag::slotFillLists() 66void ConfigDiag::slotFillLists()
70{ 67{
71 accountList->clear(); 68 accountList->clear();
72 69
73 QValueList<Account> accounts = ConfigFile::getAccounts(); 70 QValueList<Account> accounts = ConfigFile::getAccounts();
74 71
75 QValueList<Account>::Iterator it; 72 QValueList<Account>::Iterator it;
76 for (it = accounts.begin(); it != accounts.end(); it++) 73 for (it = accounts.begin(); it != accounts.end(); it++)
77 (void) new AccountListItem(accountList, *it); 74 (void) new AccountListItem(accountList, *it);
@@ -105,41 +102,24 @@ void ConfigDiag::slotEditAccount()
105 102
106 if (QDialog::Accepted == editor.exec()) { 103 if (QDialog::Accepted == editor.exec()) {
107 ConfigFile::updateAccount(editor._account); 104 ConfigFile::updateAccount(editor._account);
108 slotFillLists(); 105 slotFillLists();
109 emit changed(); 106 emit changed();
110 } 107 }
111} 108}
112 109
113void ConfigDiag::slotDelAccount() 110void ConfigDiag::slotDelAccount()
114{ 111{
115 if (!accountList->currentItem()) { 112 if (!accountList->currentItem()) {
116 QMessageBox::information(this, tr("Error"), tr("<p>You have to select an account first.</p>"), tr("Ok")); 113 QMessageBox::information(this, tr("Error"), tr("<p>You have to select an account first.</p>"), tr("Ok"));
117 return; 114 return;
118 } 115 }
119 Account account = ((AccountListItem *)accountList->currentItem())->account(); 116 Account account = ((AccountListItem *)accountList->currentItem())->account();
120 117
121 int ret = QMessageBox::information(this, tr("Question"), tr("<p>Do you relly want to delete the selected account?</p>"), tr("Yes"), tr("No")); 118 int ret = QMessageBox::information(this, tr("Question"), tr("<p>Do you relly want to delete the selected account?</p>"), tr("Yes"), tr("No"));
122 if (1 == ret) return; 119 if (1 == ret) return;
123 120
124 ConfigFile::deleteAccount(account); 121 ConfigFile::deleteAccount(account);
125 slotFillLists(); 122 slotFillLists();
126 emit changed(); 123 emit changed();
127} 124}
128 125
129void ConfigDiag::slotTestSettings()
130{
131 testbutton->setEnabled(false);
132
133 if (blinkLed->isChecked()) ZaurusStuff::blinkLedOn();
134 if (playSound->isChecked()) ZaurusStuff::buzzerOn();
135 QTimer::singleShot(3000, this, SLOT(slotEndTest()));
136}
137
138void ConfigDiag::slotEndTest()
139{
140 if (playSound->isChecked()) ZaurusStuff::buzzerOff();
141 if (blinkLed->isChecked()) ZaurusStuff::blinkLedOff();
142
143 testbutton->setEnabled(true);
144}
145
diff --git a/noncore/unsupported/mail2/configdiag.h b/noncore/unsupported/mail2/configdiag.h
index f70ba7f..cbc9b22 100644
--- a/noncore/unsupported/mail2/configdiag.h
+++ b/noncore/unsupported/mail2/configdiag.h
@@ -16,33 +16,31 @@ public:
16 16
17 Account account() { return _account; } 17 Account account() { return _account; }
18 18
19protected: 19protected:
20 Account _account; 20 Account _account;
21 21
22}; 22};
23 23
24class ConfigDiag : public ConfigDiagBase 24class ConfigDiag : public ConfigDiagBase
25{ 25{
26 Q_OBJECT 26 Q_OBJECT
27 27
28public: 28public:
29 ConfigDiag(QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags fl = 0); 29 ConfigDiag(QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags fl = 0);
30 30
31signals: 31signals:
32 void changed(); 32 void changed();
33 33
34protected slots: 34protected slots:
35 void accept(); 35 void accept();
36 void slotFillLists(); 36 void slotFillLists();
37 void slotNewAccount(); 37 void slotNewAccount();
38 void slotEditAccount(); 38 void slotEditAccount();
39 void slotDelAccount(); 39 void slotDelAccount();
40 void slotTestSettings();
41 void slotEndTest();
42 40
43private: 41private:
44 Config *_configBenD; 42 Config *_configBenD;
45 43
46}; 44};
47 45
48#endif 46#endif
diff --git a/noncore/unsupported/mail2/configdiagbase.ui b/noncore/unsupported/mail2/configdiagbase.ui
index 182fedc..8b225fe 100644
--- a/noncore/unsupported/mail2/configdiagbase.ui
+++ b/noncore/unsupported/mail2/configdiagbase.ui
@@ -212,59 +212,48 @@
212 <number>0</number> 212 <number>0</number>
213 </property> 213 </property>
214 <property stdset="1"> 214 <property stdset="1">
215 <name>spacing</name> 215 <name>spacing</name>
216 <number>3</number> 216 <number>3</number>
217 </property> 217 </property>
218 <widget row="1" column="0" rowspan="1" colspan="3" > 218 <widget row="1" column="0" rowspan="1" colspan="3" >
219 <class>QCheckBox</class> 219 <class>QCheckBox</class>
220 <property stdset="1"> 220 <property stdset="1">
221 <name>name</name> 221 <name>name</name>
222 <cstring>blinkLed</cstring> 222 <cstring>blinkLed</cstring>
223 </property> 223 </property>
224 <property stdset="1"> 224 <property stdset="1">
225 <name>sizePolicy</name> 225 <name>sizePolicy</name>
226 <sizepolicy> 226 <sizepolicy>
227 <hsizetype>3</hsizetype> 227 <hsizetype>3</hsizetype>
228 <vsizetype>0</vsizetype> 228 <vsizetype>0</vsizetype>
229 </sizepolicy> 229 </sizepolicy>
230 </property> 230 </property>
231 <property stdset="1"> 231 <property stdset="1">
232 <name>text</name> 232 <name>text</name>
233 <string>Blink LED</string> 233 <string>Blink LED</string>
234 </property> 234 </property>
235 </widget> 235 </widget>
236 <widget row="2" column="2" >
237 <class>QToolButton</class>
238 <property stdset="1">
239 <name>name</name>
240 <cstring>testbutton</cstring>
241 </property>
242 <property stdset="1">
243 <name>text</name>
244 <string> Test </string>
245 </property>
246 </widget>
247 <widget row="0" column="0" rowspan="1" colspan="3" > 236 <widget row="0" column="0" rowspan="1" colspan="3" >
248 <class>QCheckBox</class> 237 <class>QCheckBox</class>
249 <property stdset="1"> 238 <property stdset="1">
250 <name>name</name> 239 <name>name</name>
251 <cstring>playSound</cstring> 240 <cstring>playSound</cstring>
252 </property> 241 </property>
253 <property stdset="1"> 242 <property stdset="1">
254 <name>text</name> 243 <name>text</name>
255 <string>Play sound</string> 244 <string>Play sound</string>
256 </property> 245 </property>
257 </widget> 246 </widget>
258 <widget row="2" column="0" > 247 <widget row="2" column="0" >
259 <class>QLabel</class> 248 <class>QLabel</class>
260 <property stdset="1"> 249 <property stdset="1">
261 <name>name</name> 250 <name>name</name>
262 <cstring>TextLabel1</cstring> 251 <cstring>TextLabel1</cstring>
263 </property> 252 </property>
264 <property stdset="1"> 253 <property stdset="1">
265 <name>text</name> 254 <name>text</name>
266 <string>&lt;b&gt;Check&amp;nbsp;every</string> 255 <string>&lt;b&gt;Check&amp;nbsp;every</string>
267 </property> 256 </property>
268 </widget> 257 </widget>
269 <widget row="2" column="1" > 258 <widget row="2" column="1" >
270 <class>QSpinBox</class> 259 <class>QSpinBox</class>
diff --git a/noncore/unsupported/mail2/mainwindowbase.cpp b/noncore/unsupported/mail2/mainwindowbase.cpp
index 9ffe6f0..d61899b 100644
--- a/noncore/unsupported/mail2/mainwindowbase.cpp
+++ b/noncore/unsupported/mail2/mainwindowbase.cpp
@@ -9,73 +9,73 @@
9#include <qpe/qpetoolbar.h> 9#include <qpe/qpetoolbar.h>
10#include <qpe/qpemenubar.h> 10#include <qpe/qpemenubar.h>
11#include <qpe/resource.h> 11#include <qpe/resource.h>
12 12
13#include "mainwindowbase.h" 13#include "mainwindowbase.h"
14#include "folderwidget.h" 14#include "folderwidget.h"
15#include "mailtable.h" 15#include "mailtable.h"
16 16
17MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) 17MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl)
18 : QMainWindow(parent, name, fl) 18 : QMainWindow(parent, name, fl)
19{ 19{
20 setCaption(tr("E-Mail")); 20 setCaption(tr("E-Mail"));
21 setToolBarsMovable(false); 21 setToolBarsMovable(false);
22 22
23 toolbar = new QPEToolBar(this); 23 toolbar = new QPEToolBar(this);
24 menubar = new QPEMenuBar( toolbar ); 24 menubar = new QPEMenuBar( toolbar );
25 mailmenu = new QPopupMenu( menubar ); 25 mailmenu = new QPopupMenu( menubar );
26 servermenu = new QPopupMenu( menubar ); 26 servermenu = new QPopupMenu( menubar );
27 menubar->insertItem( tr( "Mail" ), mailmenu ); 27 menubar->insertItem( tr( "Mail" ), mailmenu );
28 menubar->insertItem( tr( "Servers" ), servermenu ); 28 menubar->insertItem( tr( "Servers" ), servermenu );
29 29
30 addToolBar(toolbar); 30 addToolBar(toolbar);
31 toolbar->setHorizontalStretchable(true); 31 toolbar->setHorizontalStretchable(true);
32 32
33 QLabel *spacer = new QLabel(toolbar);
34 spacer->setBackgroundMode(QWidget::PaletteButton);
35 toolbar->setStretchableWidget(spacer);
36
33 compose = new QAction(tr("Compose new mail"), QIconSet(Resource::loadPixmap("mail/newmail")), 0, 0, this); 37 compose = new QAction(tr("Compose new mail"), QIconSet(Resource::loadPixmap("mail/newmail")), 0, 0, this);
34 compose->addTo(toolbar); 38 compose->addTo(toolbar);
35 compose->addTo(mailmenu); 39 compose->addTo(mailmenu);
36 40
37 sendQueue = new QAction(tr("Send queued mails"), QIconSet(Resource::loadPixmap("mail/sendqueue")), 0, 0, this); 41 sendQueue = new QAction(tr("Send queued mails"), QIconSet(Resource::loadPixmap("mail/sendqueue")), 0, 0, this);
38 sendQueue->addTo(toolbar); 42 sendQueue->addTo(toolbar);
39 sendQueue->addTo(mailmenu); 43 sendQueue->addTo(mailmenu);
40 44
41 folders = new QAction(tr("Show/hide folders"), QIconSet(Resource::loadPixmap("mail/folder")), 0, 0, this, 0, true); 45 folders = new QAction(tr("Show/hide folders"), QIconSet(Resource::loadPixmap("mail/folder")), 0, 0, this, 0, true);
42 folders->addTo(toolbar); 46 folders->addTo(toolbar);
43 folders->addTo(servermenu); 47 folders->addTo(servermenu);
44 connect(folders, SIGNAL(toggled(bool)), SLOT(slotFoldersToggled(bool))); 48 connect(folders, SIGNAL(toggled(bool)), SLOT(slotFoldersToggled(bool)));
45 49
46 findmails = new QAction(tr("Search mails"), QIconSet(Resource::loadPixmap("mail/find")), 0, 0, this); 50 findmails = new QAction(tr("Search mails"), QIconSet(Resource::loadPixmap("mail/find")), 0, 0, this);
47 findmails->addTo(toolbar); 51 findmails->addTo(toolbar);
48 findmails->addTo(mailmenu); 52 findmails->addTo(mailmenu);
49 53
50 configure = new QAction(tr("Configuration"), QIconSet(Resource::loadPixmap("mail/configure")), 0, 0, this); 54 configure = new QAction(tr("Configuration"), QIconSet(Resource::loadPixmap("mail/configure")), 0, 0, this);
51 configure->addTo(toolbar); 55 configure->addTo(toolbar);
52 configure->addTo(servermenu); 56 configure->addTo(servermenu);
53 57
54 QLabel *spacer = new QLabel(toolbar);
55 spacer->setBackgroundMode(QWidget::PaletteButton);
56 toolbar->setStretchableWidget(spacer);
57
58 stop = new QAction(tr("Abort"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); 58 stop = new QAction(tr("Abort"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this);
59 stop->addTo(toolbar); 59 stop->addTo(toolbar);
60 60
61 QVBox *view = new QVBox(this); 61 QVBox *view = new QVBox(this);
62 setCentralWidget(view); 62 setCentralWidget(view);
63 63
64 folderView = new FolderWidget(view); 64 folderView = new FolderWidget(view);
65 folderView->setMinimumHeight(90); 65 folderView->setMinimumHeight(90);
66 folderView->setMaximumHeight(90); 66 folderView->setMaximumHeight(90);
67 folderView->hide(); 67 folderView->hide();
68 68
69 mailView = new MailTable(view); 69 mailView = new MailTable(view);
70 mailView->setMinimumHeight(50); 70 mailView->setMinimumHeight(50);
71 71
72 QHBox *status = new QHBox(view); 72 QHBox *status = new QHBox(view);
73 73
74 statusLabel = new QLabel(status); 74 statusLabel = new QLabel(status);
75 QFont tmpFont = statusLabel->font(); 75 QFont tmpFont = statusLabel->font();
76 tmpFont.setPixelSize(8); 76 tmpFont.setPixelSize(8);
77 statusLabel->setFont(tmpFont); 77 statusLabel->setFont(tmpFont);
78 78
79 statusProgress = new QProgressBar(status); 79 statusProgress = new QProgressBar(status);
80 statusProgress->setCenterIndicator(true); 80 statusProgress->setCenterIndicator(true);
81 statusProgress->setMaximumHeight(15); 81 statusProgress->setMaximumHeight(15);