Diffstat (limited to 'noncore/net/mail/settingsdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/settingsdialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/mail/settingsdialog.cpp b/noncore/net/mail/settingsdialog.cpp index 9741e94..f9de405 100644 --- a/noncore/net/mail/settingsdialog.cpp +++ b/noncore/net/mail/settingsdialog.cpp | |||
@@ -1,34 +1,38 @@ | |||
1 | #include <qradiobutton.h> | 1 | #include <qcheckbox.h> |
2 | 2 | ||
3 | #include <qpe/config.h> | 3 | #include <qpe/config.h> |
4 | 4 | ||
5 | #include "settingsdialog.h" | 5 | #include "settingsdialog.h" |
6 | 6 | ||
7 | 7 | ||
8 | SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 8 | SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
9 | : SettingsDialogUI( parent, name, modal, fl ) { | 9 | : SettingsDialogUI( parent, name, modal, fl ) { |
10 | 10 | ||
11 | readConfig(); | 11 | readConfig(); |
12 | } | 12 | } |
13 | 13 | ||
14 | SettingsDialog::~SettingsDialog() { | 14 | SettingsDialog::~SettingsDialog() { |
15 | 15 | ||
16 | } | 16 | } |
17 | 17 | ||
18 | void SettingsDialog::readConfig() { | 18 | void SettingsDialog::readConfig() { |
19 | Config cfg("mail"); | 19 | Config cfg("mail"); |
20 | cfg.setGroup( "Settings" ); | 20 | cfg.setGroup( "Settings" ); |
21 | showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) ); | 21 | showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) ); |
22 | cfg.setGroup( "Compose" ); | ||
23 | checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) ); | ||
22 | } | 24 | } |
23 | 25 | ||
24 | void SettingsDialog::writeConfig() { | 26 | void SettingsDialog::writeConfig() { |
25 | Config cfg( "mail" ); | 27 | Config cfg( "mail" ); |
26 | cfg.setGroup( "Settings" ); | 28 | cfg.setGroup( "Settings" ); |
27 | cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); | 29 | cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); |
30 | cfg.setGroup( "Compose" ); | ||
31 | cfg.writeEntry( "sendLater", checkBoxLater->isChecked() );; | ||
28 | 32 | ||
29 | } | 33 | } |
30 | 34 | ||
31 | void SettingsDialog::accept() { | 35 | void SettingsDialog::accept() { |
32 | writeConfig(); | 36 | writeConfig(); |
33 | QDialog::accept(); | 37 | QDialog::accept(); |
34 | } | 38 | } |