Diffstat (limited to 'core/pim/today/todayconfig.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/today/todayconfig.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp index 0774ccb..a60f1d2 100644 --- a/core/pim/today/todayconfig.cpp +++ b/core/pim/today/todayconfig.cpp | |||
@@ -54,7 +54,7 @@ public: | |||
54 | TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal ) | 54 | TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal ) |
55 | : QDialog( parent, name, modal, WStyle_ContextHelp ) { | 55 | : QDialog( parent, name, modal, WStyle_ContextHelp ) { |
56 | 56 | ||
57 | setCaption( tr( "Today config" ) ); | 57 | setCaption( tr( "Today Config" ) ); |
58 | 58 | ||
59 | QVBoxLayout *layout = new QVBoxLayout( this ); | 59 | QVBoxLayout *layout = new QVBoxLayout( this ); |
60 | TabWidget3 = new OTabWidget ( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom ); | 60 | TabWidget3 = new OTabWidget ( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom ); |
@@ -85,6 +85,14 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal ) | |||
85 | QWhatsThis::add( TextLabel2 , tr( "Check this if today should be autostarted on resume." ) ); | 85 | QWhatsThis::add( TextLabel2 , tr( "Check this if today should be autostarted on resume." ) ); |
86 | CheckBoxAuto = new QCheckBox( hbox_auto, "CheckBoxAuto" ); | 86 | CheckBoxAuto = new QCheckBox( hbox_auto, "CheckBoxAuto" ); |
87 | QWhatsThis::add( CheckBoxAuto, tr( "Check this if today should be autostarted on resume." ) ); | 87 | QWhatsThis::add( CheckBoxAuto, tr( "Check this if today should be autostarted on resume." ) ); |
88 | |||
89 | QHBox *hbox_hide = new QHBox( tab_3 ); | ||
90 | TextLabel4 = new QLabel( hbox_hide, "HideBanner" ); | ||
91 | TextLabel4->setText( tr( "Tiny Banner" ) ); | ||
92 | //QWhatsThis::add( TextLabel2 , tr( "Check this if today should be autostarted on resume." ) ); | ||
93 | CheckBoxHide = new QCheckBox( hbox_hide, "CheckBoxHide" ); | ||
94 | // QWhatsThis::add( CheckBoxAuto, tr( "Check this if today should be autostarted on resume." ) ); | ||
95 | |||
88 | QHBox *hbox_inactive = new QHBox( tab_3 ); | 96 | QHBox *hbox_inactive = new QHBox( tab_3 ); |
89 | TimeLabel = new QLabel( hbox_inactive, "TimeLabel" ); | 97 | TimeLabel = new QLabel( hbox_inactive, "TimeLabel" ); |
90 | TimeLabel->setText( tr( "minutes inactive" ) ); | 98 | TimeLabel->setText( tr( "minutes inactive" ) ); |
@@ -112,6 +120,7 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal ) | |||
112 | QWhatsThis::add( SpinRefresh, tr( "How often should Today refresh itself" ) ); | 120 | QWhatsThis::add( SpinRefresh, tr( "How often should Today refresh itself" ) ); |
113 | 121 | ||
114 | tab3Layout->addWidget( hbox_auto ); | 122 | tab3Layout->addWidget( hbox_auto ); |
123 | tab3Layout->addWidget( hbox_hide ); | ||
115 | tab3Layout->addWidget( hbox_inactive ); | 124 | tab3Layout->addWidget( hbox_inactive ); |
116 | tab3Layout->addWidget( hbox_iconSize ); | 125 | tab3Layout->addWidget( hbox_iconSize ); |
117 | tab3Layout->addWidget( hbox_refresh ); | 126 | tab3Layout->addWidget( hbox_refresh ); |
@@ -160,6 +169,7 @@ void TodayConfig::readConfig() { | |||
160 | m_iconSize = cfg.readNumEntry( "IconSize", 18 ); | 169 | m_iconSize = cfg.readNumEntry( "IconSize", 18 ); |
161 | SpinBoxIconSize->setValue( m_iconSize ); | 170 | SpinBoxIconSize->setValue( m_iconSize ); |
162 | SpinRefresh->setValue( cfg.readNumEntry( "checkinterval", 15000 ) / 1000 ); | 171 | SpinRefresh->setValue( cfg.readNumEntry( "checkinterval", 15000 ) / 1000 ); |
172 | CheckBoxHide->setChecked( cfg.readNumEntry( "HideBanner", 0 ) ); | ||
163 | 173 | ||
164 | 174 | ||
165 | cfg.setGroup( "Plugins" ); | 175 | cfg.setGroup( "Plugins" ); |
@@ -207,6 +217,7 @@ void TodayConfig::writeConfig() { | |||
207 | 217 | ||
208 | cfg.setGroup( "General" ); | 218 | cfg.setGroup( "General" ); |
209 | cfg.writeEntry( "IconSize", m_iconSize ); | 219 | cfg.writeEntry( "IconSize", m_iconSize ); |
220 | cfg.writeEntry( "HideBanner", CheckBoxHide->isChecked() ); | ||
210 | cfg.writeEntry( "checkinterval", SpinRefresh->value()*1000 ); | 221 | cfg.writeEntry( "checkinterval", SpinRefresh->value()*1000 ); |
211 | 222 | ||
212 | // set autostart settings | 223 | // set autostart settings |