summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/doctab/doctab.cpp7
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
@@ -34,48 +34,55 @@
34#include <qcheckbox.h> 34#include <qcheckbox.h>
35#include <qradiobutton.h> 35#include <qradiobutton.h>
36#include <qtabwidget.h> 36#include <qtabwidget.h>
37#include <qslider.h> 37#include <qslider.h>
38#include <qfile.h> 38#include <qfile.h>
39#include <qtextstream.h> 39#include <qtextstream.h>
40#include <qdatastream.h> 40#include <qdatastream.h>
41#include <qmessagebox.h> 41#include <qmessagebox.h>
42#include <qcombobox.h> 42#include <qcombobox.h>
43#include <qspinbox.h> 43#include <qspinbox.h>
44#include <qlistbox.h> 44#include <qlistbox.h>
45#include <qdir.h> 45#include <qdir.h>
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
53DocTabSettings::DocTabSettings( QWidget* parent, const char* name, WFlags fl ) 53DocTabSettings::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
60DocTabSettings::~DocTabSettings() 67DocTabSettings::~DocTabSettings()
61{} 68{}
62 69
63void DocTabSettings::accept() 70void DocTabSettings::accept()
64{ 71{
65 applyDocTab(); 72 applyDocTab();
66 QDialog::accept(); 73 QDialog::accept();
67} 74}
68 75
69void DocTabSettings::applyDocTab() 76void DocTabSettings::applyDocTab()
70{ 77{
71 Config cfg( "Launcher" ); 78 Config cfg( "Launcher" );
72 cfg.setGroup( "DocTab" ); 79 cfg.setGroup( "DocTab" );
73 cfg.writeEntry( "Enable", yes->isChecked() ); 80 cfg.writeEntry( "Enable", yes->isChecked() );
74 cfg.write(); 81 cfg.write();
75} 82}
76 83
77 84
78void DocTabSettings::reject() 85void DocTabSettings::reject()
79{ 86{
80 reset(); 87 reset();
81 QDialog::reject(); 88 QDialog::reject();