Diffstat (limited to 'noncore/net/mail/settingsdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/settingsdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/mail/settingsdialog.cpp b/noncore/net/mail/settingsdialog.cpp index 6441948..74b8b12 100644 --- a/noncore/net/mail/settingsdialog.cpp +++ b/noncore/net/mail/settingsdialog.cpp | |||
@@ -11,37 +11,41 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, W | |||
11 | 11 | ||
12 | readConfig(); | 12 | readConfig(); |
13 | } | 13 | } |
14 | 14 | ||
15 | SettingsDialog::~SettingsDialog() { | 15 | SettingsDialog::~SettingsDialog() { |
16 | 16 | ||
17 | } | 17 | } |
18 | 18 | ||
19 | void SettingsDialog::readConfig() { | 19 | void SettingsDialog::readConfig() { |
20 | Config cfg("mail"); | 20 | Config cfg("mail"); |
21 | cfg.setGroup( "Settings" ); | 21 | cfg.setGroup( "Settings" ); |
22 | showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) ); | 22 | showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) ); |
23 | clickOpenMailButton->setChecked(cfg.readBoolEntry("clickOpensMail",true)); | ||
24 | clickOpenFolderButton->setChecked(cfg.readBoolEntry("clickOpensFolder",true)); | ||
23 | cfg.setGroup( "Compose" ); | 25 | cfg.setGroup( "Compose" ); |
24 | checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) ); | 26 | checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) ); |
25 | cfg.setGroup( "Applet" ); | 27 | cfg.setGroup( "Applet" ); |
26 | cbEnableTaskbarApplet->setChecked( cfg.readBoolEntry( "Disabled", false ) ); | 28 | cbEnableTaskbarApplet->setChecked( cfg.readBoolEntry( "Disabled", false ) ); |
27 | spCheckOften->setValue( cfg.readNumEntry( "CheckEvery", 5 ) ); | 29 | spCheckOften->setValue( cfg.readNumEntry( "CheckEvery", 5 ) ); |
28 | cbBlinkLed->setChecked( cfg.readBoolEntry( "BlinkLed", true ) ); | 30 | cbBlinkLed->setChecked( cfg.readBoolEntry( "BlinkLed", true ) ); |
29 | cbPlaySound->setChecked( cfg.readBoolEntry( "PlaySound", false ) ); | 31 | cbPlaySound->setChecked( cfg.readBoolEntry( "PlaySound", false ) ); |
30 | 32 | ||
31 | } | 33 | } |
32 | 34 | ||
33 | void SettingsDialog::writeConfig() { | 35 | void SettingsDialog::writeConfig() { |
34 | Config cfg( "mail" ); | 36 | Config cfg( "mail" ); |
35 | cfg.setGroup( "Settings" ); | 37 | cfg.setGroup( "Settings" ); |
38 | cfg.writeEntry("clickOpensMail",clickOpenMailButton->isChecked()); | ||
39 | cfg.writeEntry("clickOpensFolder",clickOpenFolderButton->isChecked()); | ||
36 | cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); | 40 | cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); |
37 | cfg.setGroup( "Compose" ); | 41 | cfg.setGroup( "Compose" ); |
38 | cfg.writeEntry( "sendLater", checkBoxLater->isChecked() ); | 42 | cfg.writeEntry( "sendLater", checkBoxLater->isChecked() ); |
39 | cfg.setGroup( "Applet" ); | 43 | cfg.setGroup( "Applet" ); |
40 | cfg.writeEntry( "Disabled", cbEnableTaskbarApplet->isChecked() ); | 44 | cfg.writeEntry( "Disabled", cbEnableTaskbarApplet->isChecked() ); |
41 | int check = spCheckOften->value(); | 45 | int check = spCheckOften->value(); |
42 | if (check<1)check=1;if (check>99)check=99; | 46 | if (check<1)check=1;if (check>99)check=99; |
43 | cfg.writeEntry( "CheckEvery", check); | 47 | cfg.writeEntry( "CheckEvery", check); |
44 | cfg.writeEntry( "BlinkLed", cbBlinkLed->isChecked() ); | 48 | cfg.writeEntry( "BlinkLed", cbBlinkLed->isChecked() ); |
45 | cfg.writeEntry( "PlaySound", cbPlaySound->isChecked() ); | 49 | cfg.writeEntry( "PlaySound", cbPlaySound->isChecked() ); |
46 | } | 50 | } |
47 | 51 | ||