-rw-r--r-- | noncore/unsupported/mail2/composerbase.cpp | 8 | ||||
-rw-r--r-- | noncore/unsupported/mail2/configdiag.cpp | 20 | ||||
-rw-r--r-- | noncore/unsupported/mail2/configdiag.h | 2 | ||||
-rw-r--r-- | noncore/unsupported/mail2/configdiagbase.ui | 11 | ||||
-rw-r--r-- | noncore/unsupported/mail2/mainwindowbase.cpp | 8 |
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 @@ -28,4 +28,8 @@ ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl) toolbar->setHorizontalStretchable(true); + QLabel *spacer = new QLabel(toolbar); + spacer->setBackgroundMode(QWidget::PaletteButton); + toolbar->setStretchableWidget(spacer); + sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this); sendmail->addTo(toolbar); @@ -45,8 +49,4 @@ ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl) addressbook->addTo(mailmenu); - QLabel *spacer = new QLabel(toolbar); - spacer->setBackgroundMode(QWidget::PaletteButton); - toolbar->setStretchableWidget(spacer); - abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); abort->addTo(toolbar); 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 @@ -13,5 +13,4 @@ #include "accounteditor.h" -#include "zaurusstuff.h" #include "configdiag.h" #include "defines.h" @@ -50,6 +49,4 @@ ConfigDiag::ConfigDiag(QWidget *parent, const char *name, bool modal, WFlags fl) connect(accountDelete, SIGNAL(clicked()), SLOT(slotDelAccount())); - connect(testbutton, SIGNAL(clicked()), SLOT(slotTestSettings())); - slotFillLists(); } @@ -127,19 +124,2 @@ void ConfigDiag::slotDelAccount() } -void ConfigDiag::slotTestSettings() -{ - testbutton->setEnabled(false); - - if (blinkLed->isChecked()) ZaurusStuff::blinkLedOn(); - if (playSound->isChecked()) ZaurusStuff::buzzerOn(); - QTimer::singleShot(3000, this, SLOT(slotEndTest())); -} - -void ConfigDiag::slotEndTest() -{ - if (playSound->isChecked()) ZaurusStuff::buzzerOff(); - if (blinkLed->isChecked()) ZaurusStuff::blinkLedOff(); - - testbutton->setEnabled(true); -} - 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 @@ -38,6 +38,4 @@ protected slots: void slotEditAccount(); void slotDelAccount(); - void slotTestSettings(); - void slotEndTest(); private: 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 @@ -234,15 +234,4 @@ </property> </widget> - <widget row="2" column="2" > - <class>QToolButton</class> - <property stdset="1"> - <name>name</name> - <cstring>testbutton</cstring> - </property> - <property stdset="1"> - <name>text</name> - <string> Test </string> - </property> - </widget> <widget row="0" column="0" rowspan="1" colspan="3" > <class>QCheckBox</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 @@ -31,4 +31,8 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) toolbar->setHorizontalStretchable(true); + QLabel *spacer = new QLabel(toolbar); + spacer->setBackgroundMode(QWidget::PaletteButton); + toolbar->setStretchableWidget(spacer); + compose = new QAction(tr("Compose new mail"), QIconSet(Resource::loadPixmap("mail/newmail")), 0, 0, this); compose->addTo(toolbar); @@ -52,8 +56,4 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) configure->addTo(servermenu); - QLabel *spacer = new QLabel(toolbar); - spacer->setBackgroundMode(QWidget::PaletteButton); - toolbar->setStretchableWidget(spacer); - stop = new QAction(tr("Abort"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); stop->addTo(toolbar); |