author | harlekin <harlekin> | 2002-10-05 20:46:18 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-05 20:46:18 (UTC) |
commit | d7f9d00fcc9261db9c4af4f1b4afde9d50e8a2a2 (patch) (unidiff) | |
tree | 3afa0409bea98ca92ebfa269485f0845b3c96b6a /core/pim/today/todayconfig.cpp | |
parent | ab196dbed05f9e534709a9c0b7f44eca65a72929 (diff) | |
download | opie-d7f9d00fcc9261db9c4af4f1b4afde9d50e8a2a2.zip opie-d7f9d00fcc9261db9c4af4f1b4afde9d50e8a2a2.tar.gz opie-d7f9d00fcc9261db9c4af4f1b4afde9d50e8a2a2.tar.bz2 |
buttons resizable and clickable again
Diffstat (limited to 'core/pim/today/todayconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todayconfig.cpp | 22 |
1 files changed, 20 insertions, 2 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 | |||
@@ -31,2 +31,3 @@ | |||
31 | #include <qtoolbutton.h> | 31 | #include <qtoolbutton.h> |
32 | #include <qtooltip.h> | ||
32 | 33 | ||
@@ -83,7 +84,15 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags | |||
83 | QHBox *hbox_inactive = new QHBox( tab_3 ); | 84 | QHBox *hbox_inactive = new QHBox( tab_3 ); |
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" ) ); |
@@ -110,3 +119,3 @@ void TodayConfig::setAutoStart() { | |||
110 | e << QString( "today" ); | 119 | e << QString( "today" ); |
111 | e << QString("%1").arg( m_autoStartTimer ); | 120 | e << QString( "%1" ).arg( m_autoStartTimer ); |
112 | } else { | 121 | } else { |
@@ -129,2 +138,6 @@ void TodayConfig::readConfig() { | |||
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" ); |
@@ -170,2 +183,7 @@ void TodayConfig::writeConfig() { | |||
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 | ||