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, 4 insertions, 0 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp index 5fd5221..6b7c3ce 100644 --- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp | |||
@@ -45,12 +45,14 @@ void DatebookPluginConfig::readConfig() { | |||
45 | m_gui->CheckBox2->setChecked( m_show_notes ); | 45 | m_gui->CheckBox2->setChecked( m_show_notes ); |
46 | m_only_later = cfg.readNumEntry( "onlylater", 1 ); | 46 | m_only_later = cfg.readNumEntry( "onlylater", 1 ); |
47 | m_gui->CheckBox4->setChecked( cfg.readNumEntry( "timeextraline", 1 ) ); | 47 | m_gui->CheckBox4->setChecked( cfg.readNumEntry( "timeextraline", 1 ) ); |
48 | m_gui->CheckBox3->setChecked( m_only_later ); | 48 | m_gui->CheckBox3->setChecked( m_only_later ); |
49 | m_more_days = cfg.readNumEntry( "moredays", 0 ); | 49 | m_more_days = cfg.readNumEntry( "moredays", 0 ); |
50 | m_gui->SpinBox2->setValue( m_more_days ); | 50 | m_gui->SpinBox2->setValue( m_more_days ); |
51 | m_maxCharClip = cfg.readNumEntry( "maxcharclip" , 38 ); | ||
52 | m_gui->SpinBox3->setValue( m_maxCharClip ); | ||
51 | } | 53 | } |
52 | 54 | ||
53 | 55 | ||
54 | void DatebookPluginConfig::writeConfig() { | 56 | void DatebookPluginConfig::writeConfig() { |
55 | Config cfg( "todaydatebookplugin" ); | 57 | Config cfg( "todaydatebookplugin" ); |
56 | cfg.setGroup( "config" ); | 58 | cfg.setGroup( "config" ); |
@@ -63,11 +65,13 @@ void DatebookPluginConfig::writeConfig() { | |||
63 | cfg.writeEntry( "shownotes", m_show_notes ); | 65 | cfg.writeEntry( "shownotes", m_show_notes ); |
64 | m_only_later = m_gui->CheckBox3->isChecked(); | 66 | m_only_later = m_gui->CheckBox3->isChecked(); |
65 | cfg.writeEntry( "timeextraline", m_gui->CheckBox4->isChecked() ); | 67 | cfg.writeEntry( "timeextraline", m_gui->CheckBox4->isChecked() ); |
66 | cfg.writeEntry( "onlylater", m_only_later ); | 68 | cfg.writeEntry( "onlylater", m_only_later ); |
67 | m_more_days = m_gui->SpinBox2->value(); | 69 | m_more_days = m_gui->SpinBox2->value(); |
68 | cfg.writeEntry( "moredays", m_more_days ); | 70 | cfg.writeEntry( "moredays", m_more_days ); |
71 | m_maxCharClip = m_gui->SpinBox3->value(); | ||
72 | cfg.writeEntry( "maxcharclip", m_maxCharClip ); | ||
69 | cfg.write(); | 73 | cfg.write(); |
70 | } | 74 | } |
71 | 75 | ||
72 | DatebookPluginConfig::~DatebookPluginConfig() { | 76 | DatebookPluginConfig::~DatebookPluginConfig() { |
73 | } | 77 | } |