summaryrefslogtreecommitdiff
path: root/noncore/net/mail/settingsdialog.cpp
Unidiff
Diffstat (limited to 'noncore/net/mail/settingsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/settingsdialog.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/noncore/net/mail/settingsdialog.cpp b/noncore/net/mail/settingsdialog.cpp
index f9de405..061ea72 100644
--- a/noncore/net/mail/settingsdialog.cpp
+++ b/noncore/net/mail/settingsdialog.cpp
@@ -1,4 +1,5 @@
1#include <qcheckbox.h> 1#include <qcheckbox.h>
2#include <qspinbox.h>
2 3
3#include <qpe/config.h> 4#include <qpe/config.h>
4 5
@@ -21,6 +22,12 @@ void SettingsDialog::readConfig() {
21 showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) ); 22 showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) );
22 cfg.setGroup( "Compose" ); 23 cfg.setGroup( "Compose" );
23 checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) ); 24 checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) );
25 cfg.setGroup( "Applet" );
26 cbEnableTaskbarApplet->setChecked( cfg.readBoolEntry( "Disabled", false ) );
27 spCheckOften->setValue( cfg.readNumEntry( "CheckEvery", 5 ) );
28 cbBlinkLed->setChecked( cfg.readBoolEntry( "BlinkLed", true ) );
29 cbPlaySound->setChecked( cfg.readBoolEntry( "PlaySound", false ) );
30
24} 31}
25 32
26void SettingsDialog::writeConfig() { 33void SettingsDialog::writeConfig() {
@@ -28,8 +35,12 @@ void SettingsDialog::writeConfig() {
28 cfg.setGroup( "Settings" ); 35 cfg.setGroup( "Settings" );
29 cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); 36 cfg.writeEntry( "showHtml", showHtmlButton->isChecked() );
30 cfg.setGroup( "Compose" ); 37 cfg.setGroup( "Compose" );
31 cfg.writeEntry( "sendLater", checkBoxLater->isChecked() );; 38 cfg.writeEntry( "sendLater", checkBoxLater->isChecked() );
32 39 cfg.setGroup( "Applet" );
40 cfg.writeEntry( "Disabled", cbEnableTaskbarApplet->isChecked() );
41 cfg.writeEntry( "CheckEvery", spCheckOften->value() );
42 cfg.writeEntry( "BlinkLed", cbBlinkLed->isChecked() );
43 cfg.writeEntry( "PlaySound", cbPlaySound->isChecked() );
33} 44}
34 45
35void SettingsDialog::accept() { 46void SettingsDialog::accept() {