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
@@ -55,5 +55,5 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
: QDialog( parent, name, modal, WStyle_ContextHelp ) {
- setCaption( tr( "Today config" ) );
+ setCaption( tr( "Today Config" ) );
QVBoxLayout *layout = new QVBoxLayout( this );
@@ -86,4 +86,12 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
CheckBoxAuto = new QCheckBox( hbox_auto, "CheckBoxAuto" );
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 );
TimeLabel = new QLabel( hbox_inactive, "TimeLabel" );
@@ -113,4 +121,5 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
tab3Layout->addWidget( hbox_auto );
+ tab3Layout->addWidget( hbox_hide );
tab3Layout->addWidget( hbox_inactive );
tab3Layout->addWidget( hbox_iconSize );
@@ -161,4 +170,5 @@ void TodayConfig::readConfig() {
SpinBoxIconSize->setValue( m_iconSize );
SpinRefresh->setValue( cfg.readNumEntry( "checkinterval", 15000 ) / 1000 );
+ CheckBoxHide->setChecked( cfg.readNumEntry( "HideBanner", 0 ) );
@@ -208,4 +218,5 @@ void TodayConfig::writeConfig() {
cfg.setGroup( "General" );
cfg.writeEntry( "IconSize", m_iconSize );
+ cfg.writeEntry( "HideBanner", CheckBoxHide->isChecked() );
cfg.writeEntry( "checkinterval", SpinRefresh->value()*1000 );