author | harlekin <harlekin> | 2003-12-20 00:07:03 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-20 00:07:03 (UTC) |
commit | 26c201d7ce1e1fcf64129164cc97120d8cc7cb69 (patch) (side-by-side diff) | |
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) (show 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 @@ +#include <qradiobutton.h> + +#include <qpe/config.h> + +#include "settingsdialog.h" + + +SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) + : SettingsDialogUI( parent, name, modal, fl ) { + + readConfig(); +} + +SettingsDialog::~SettingsDialog() { + +} + +void SettingsDialog::readConfig() { + Config cfg("mail"); + cfg.setGroup( "Settings" ); + showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) ); +} + +void SettingsDialog::writeConfig() { + Config cfg( "mail" ); + cfg.setGroup( "Settings" ); + cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); + +} + +void SettingsDialog::accept() { + writeConfig(); + QDialog::accept(); +} |