summaryrefslogtreecommitdiff
path: root/core/pim/today/todayconfig.cpp
Unidiff
Diffstat (limited to 'core/pim/today/todayconfig.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/todayconfig.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp
index 3fc5830..097965b 100644
--- a/core/pim/today/todayconfig.cpp
+++ b/core/pim/today/todayconfig.cpp
@@ -29,6 +29,7 @@
29#include <qhbox.h> 29#include <qhbox.h>
30#include <qvbox.h> 30#include <qvbox.h>
31#include <qtoolbutton.h> 31#include <qtoolbutton.h>
32#include <qtooltip.h>
32 33
33class ToolButton : public QToolButton { 34class ToolButton : public QToolButton {
34 35
@@ -84,8 +85,16 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags
84 TimeLabel = new QLabel( hbox_inactive , "TimeLabel" ); 85 TimeLabel = new QLabel( hbox_inactive , "TimeLabel" );
85 TimeLabel->setText( tr( "minutes inactive" ) ); 86 TimeLabel->setText( tr( "minutes inactive" ) );
86 SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" ); 87 SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" );
88 QHBox *hbox_iconSize = new QHBox( tab_3 );
89 QLabel *iconSizeLabel = new QLabel( hbox_iconSize, "iconSizeLabel" );
90 iconSizeLabel->setText( tr( "Icon size" ) );
91 // iconSizeLabel->setToolTip( tr( "Set the icon size in pixel" ) );
92 SpinBoxIconSize = new QSpinBox( hbox_iconSize, "TimeSpinner" );
93 SpinBoxIconSize->setMaxValue( 32 );
94
87 tab3Layout->addWidget( hbox_auto ); 95 tab3Layout->addWidget( hbox_auto );
88 tab3Layout->addWidget( hbox_inactive ); 96 tab3Layout->addWidget( hbox_inactive );
97 tab3Layout->addWidget( hbox_iconSize );
89 TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) ); 98 TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) );
90 99
91 m_applets_changed = false; 100 m_applets_changed = false;
@@ -127,6 +136,10 @@ void TodayConfig::readConfig() {
127 m_autoStartTimer = cfg.readNumEntry( "autostartdelay", 0 ); 136 m_autoStartTimer = cfg.readNumEntry( "autostartdelay", 0 );
128 SpinBoxTime->setValue( m_autoStartTimer ); 137 SpinBoxTime->setValue( m_autoStartTimer );
129 138
139 cfg.setGroup( "General" );
140 m_iconSize = cfg.readNumEntry( "IconSize", 18 );
141 SpinBoxIconSize->setValue( m_iconSize );
142
130 cfg.setGroup( "Plugins" ); 143 cfg.setGroup( "Plugins" );
131 m_excludeApplets = cfg.readListEntry( "ExcludeApplets", ',' ); 144 m_excludeApplets = cfg.readListEntry( "ExcludeApplets", ',' );
132} 145}
@@ -168,6 +181,11 @@ void TodayConfig::writeConfig() {
168 cfg.writeEntry( "autostart", m_autoStart ); 181 cfg.writeEntry( "autostart", m_autoStart );
169 m_autoStartTimer = SpinBoxTime->value(); 182 m_autoStartTimer = SpinBoxTime->value();
170 cfg.writeEntry( "autostartdelay", m_autoStartTimer ); 183 cfg.writeEntry( "autostartdelay", m_autoStartTimer );
184 m_iconSize = SpinBoxIconSize->value();
185
186 cfg.setGroup( "General" );
187 cfg.writeEntry( "IconSize", m_iconSize );
188
171 189
172 // set autostart settings 190 // set autostart settings
173 setAutoStart(); 191 setAutoStart();