author | harlekin <harlekin> | 2003-12-20 00:07:03 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-20 00:07:03 (UTC) |
commit | 26c201d7ce1e1fcf64129164cc97120d8cc7cb69 (patch) (unidiff) | |
tree | 708c16e6a840c972ed01c4db2f7466cda5ee6d31 /noncore/net/mail/settingsdialog.cpp | |
parent | dc088ad432189b4883f7654ef6b2c1e2f69112cc (diff) | |
download | opie-26c201d7ce1e1fcf64129164cc97120d8cc7cb69.zip opie-26c201d7ce1e1fcf64129164cc97120d8cc7cb69.tar.gz opie-26c201d7ce1e1fcf64129164cc97120d8cc7cb69.tar.bz2 |
also add the new files
Diffstat (limited to 'noncore/net/mail/settingsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/settingsdialog.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/noncore/net/mail/settingsdialog.cpp b/noncore/net/mail/settingsdialog.cpp new file mode 100644 index 0000000..9741e94 --- a/dev/null +++ b/noncore/net/mail/settingsdialog.cpp | |||
@@ -0,0 +1,34 @@ | |||
1 | #include <qradiobutton.h> | ||
2 | |||
3 | #include <qpe/config.h> | ||
4 | |||
5 | #include "settingsdialog.h" | ||
6 | |||
7 | |||
8 | SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
9 | : SettingsDialogUI( parent, name, modal, fl ) { | ||
10 | |||
11 | readConfig(); | ||
12 | } | ||
13 | |||
14 | SettingsDialog::~SettingsDialog() { | ||
15 | |||
16 | } | ||
17 | |||
18 | void SettingsDialog::readConfig() { | ||
19 | Config cfg("mail"); | ||
20 | cfg.setGroup( "Settings" ); | ||
21 | showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) ); | ||
22 | } | ||
23 | |||
24 | void SettingsDialog::writeConfig() { | ||
25 | Config cfg( "mail" ); | ||
26 | cfg.setGroup( "Settings" ); | ||
27 | cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); | ||
28 | |||
29 | } | ||
30 | |||
31 | void SettingsDialog::accept() { | ||
32 | writeConfig(); | ||
33 | QDialog::accept(); | ||
34 | } | ||