author | paule <paule> | 2007-01-13 10:59:49 (UTC) |
---|---|---|
committer | paule <paule> | 2007-01-13 10:59:49 (UTC) |
commit | 2e26f72390e18260c6fc3fedc5378a6ca9ddfffb (patch) (unidiff) | |
tree | c6ef3b904899ff160f22e336d5a0cd5f38ae0eb3 | |
parent | 5c03ec2b2d0d6b10f7581b8b447cbcb1935e7e67 (diff) | |
download | opie-2e26f72390e18260c6fc3fedc5378a6ca9ddfffb.zip opie-2e26f72390e18260c6fc3fedc5378a6ca9ddfffb.tar.gz opie-2e26f72390e18260c6fc3fedc5378a6ca9ddfffb.tar.bz2 |
Actually read the doctab enable/disable setting.
Partially fixes bug #1618.
-rw-r--r-- | noncore/settings/doctab/doctab.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/settings/doctab/doctab.cpp b/noncore/settings/doctab/doctab.cpp index 72eda6b..1cf3e2d 100644 --- a/noncore/settings/doctab/doctab.cpp +++ b/noncore/settings/doctab/doctab.cpp | |||
@@ -46,24 +46,31 @@ | |||
46 | #if QT_VERSION >= 0x030000 | 46 | #if QT_VERSION >= 0x030000 |
47 | #include <qstylefactory.h> | 47 | #include <qstylefactory.h> |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #include <stdlib.h> | 50 | #include <stdlib.h> |
51 | 51 | ||
52 | 52 | ||
53 | DocTabSettings::DocTabSettings( QWidget* parent, const char* name, WFlags fl ) | 53 | DocTabSettings::DocTabSettings( QWidget* parent, const char* name, WFlags fl ) |
54 | : DocTabSettingsBase( parent, name, TRUE, fl ) | 54 | : DocTabSettingsBase( parent, name, TRUE, fl ) |
55 | { | 55 | { |
56 | dl = new QPEDialogListener(this); | 56 | dl = new QPEDialogListener(this); |
57 | reset(); | 57 | reset(); |
58 | |||
59 | Config cfg( "Launcher" ); | ||
60 | cfg.setGroup( "DocTab" ); | ||
61 | if(cfg.readBoolEntry( "Enable", true )) | ||
62 | yes->setChecked(true); | ||
63 | else | ||
64 | no->setChecked(true); | ||
58 | } | 65 | } |
59 | 66 | ||
60 | DocTabSettings::~DocTabSettings() | 67 | DocTabSettings::~DocTabSettings() |
61 | {} | 68 | {} |
62 | 69 | ||
63 | void DocTabSettings::accept() | 70 | void DocTabSettings::accept() |
64 | { | 71 | { |
65 | applyDocTab(); | 72 | applyDocTab(); |
66 | QDialog::accept(); | 73 | QDialog::accept(); |
67 | } | 74 | } |
68 | 75 | ||
69 | void DocTabSettings::applyDocTab() | 76 | void DocTabSettings::applyDocTab() |