summaryrefslogtreecommitdiff
path: root/core/pim/today/todayconfig.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/today/todayconfig.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/todayconfig.cpp13
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
@@ -56,3 +56,3 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
- setCaption( tr( "Today config" ) );
+ setCaption( tr( "Today Config" ) );
@@ -87,2 +87,10 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
QWhatsThis::add( CheckBoxAuto, tr( "Check this if today should be autostarted on resume." ) );
+
+ QHBox *hbox_hide = new QHBox( tab_3 );
+ TextLabel4 = new QLabel( hbox_hide, "HideBanner" );
+ TextLabel4->setText( tr( "Tiny Banner" ) );
+ //QWhatsThis::add( TextLabel2 , tr( "Check this if today should be autostarted on resume." ) );
+ CheckBoxHide = new QCheckBox( hbox_hide, "CheckBoxHide" );
+ // QWhatsThis::add( CheckBoxAuto, tr( "Check this if today should be autostarted on resume." ) );
+
QHBox *hbox_inactive = new QHBox( tab_3 );
@@ -114,2 +122,3 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
tab3Layout->addWidget( hbox_auto );
+ tab3Layout->addWidget( hbox_hide );
tab3Layout->addWidget( hbox_inactive );
@@ -162,2 +171,3 @@ void TodayConfig::readConfig() {
SpinRefresh->setValue( cfg.readNumEntry( "checkinterval", 15000 ) / 1000 );
+ CheckBoxHide->setChecked( cfg.readNumEntry( "HideBanner", 0 ) );
@@ -209,2 +219,3 @@ void TodayConfig::writeConfig() {
cfg.writeEntry( "IconSize", m_iconSize );
+ cfg.writeEntry( "HideBanner", CheckBoxHide->isChecked() );
cfg.writeEntry( "checkinterval", SpinRefresh->value()*1000 );