Diffstat (limited to 'core/pim/today/plugins/datebook/datebookpluginconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginconfig.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp index 54f820b..8ead40d 100644 --- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp | |||
@@ -1,50 +1,46 @@ | |||
1 | /* | 1 | /* |
2 | * datebookpluginconfig.cpp | 2 | * datebookpluginconfig.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002,2003 by Maximilian Reiß | 4 | * copyright : (c) 2002,2003 by Maximilian Reiß |
5 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | 17 | ||
18 | #include "datebookpluginconfig.h" | 18 | #include "datebookpluginconfig.h" |
19 | 19 | ||
20 | #include <qpe/config.h> | 20 | #include <qpe/config.h> |
21 | 21 | ||
22 | #include <qlayout.h> | 22 | #include <qlayout.h> |
23 | #include <qlabel.h> | ||
24 | #include <qhbox.h> | ||
25 | #include <qwhatsthis.h> | ||
26 | #include <qvbox.h> | ||
27 | 23 | ||
28 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) | 24 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) |
29 | : TodayConfigWidget( parent, name ) { | 25 | : TodayConfigWidget( parent, name ) { |
30 | 26 | ||
31 | QVBoxLayout *layout = new QVBoxLayout( this ); | 27 | QVBoxLayout *layout = new QVBoxLayout( this ); |
32 | 28 | ||
33 | m_gui = new DatebookPluginConfigBase( this ); | 29 | m_gui = new DatebookPluginConfigBase( this ); |
34 | 30 | ||
35 | layout->addWidget( m_gui ); | 31 | layout->addWidget( m_gui ); |
36 | 32 | ||
37 | readConfig(); | 33 | readConfig(); |
38 | } | 34 | } |
39 | 35 | ||
40 | void DatebookPluginConfig::readConfig() { | 36 | void DatebookPluginConfig::readConfig() { |
41 | Config cfg( "todaydatebookplugin" ); | 37 | Config cfg( "todaydatebookplugin" ); |
42 | cfg.setGroup( "config" ); | 38 | cfg.setGroup( "config" ); |
43 | 39 | ||
44 | m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 ); | 40 | m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 ); |
45 | m_gui->SpinBox1->setValue( m_max_lines_meet ); | 41 | m_gui->SpinBox1->setValue( m_max_lines_meet ); |
46 | m_show_location = cfg.readNumEntry( "showlocation", 1 ); | 42 | m_show_location = cfg.readNumEntry( "showlocation", 1 ); |
47 | m_gui->CheckBox1->setChecked( m_show_location ); | 43 | m_gui->CheckBox1->setChecked( m_show_location ); |
48 | m_show_notes = cfg.readNumEntry( "shownotes", 0 ); | 44 | m_show_notes = cfg.readNumEntry( "shownotes", 0 ); |
49 | m_gui->CheckBox2->setChecked( m_show_notes ); | 45 | m_gui->CheckBox2->setChecked( m_show_notes ); |
50 | m_only_later = cfg.readNumEntry( "onlylater", 1 ); | 46 | m_only_later = cfg.readNumEntry( "onlylater", 1 ); |