rem: KOPrefs::instance()->mHourSize = mHourSizeSlider->value(); KOPrefs::instance()->mNextXDays = mNextXDaysSpin->value();
add: QStringList::Iterator tz; for (tz = tzonenames.begin(); tz != tzonenames.end(); tz++) if (mTimeZoneCombo->currentText() == i18n((*tz).utf8())) break; if (tz != tzonenames.end()) KOPrefs::instance()->mTimeZoneId = (*tz); else KOPrefs::instance()->mTimeZoneId = mTimeZoneCombo->currentText();  KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); int mask = 0; for ( int i = 0; i < 7; ++i ) { if (mWorkDays[i]->isChecked()) mask = mask | (1<<i); } KOPrefs::instance()->mWorkWeekMask = mask; KOPrefs::instance()->writeConfig();
context:     void usrWriteConfig()    {      KOPrefs::instance()->mHourSize = mHourSizeSlider->value();      KOPrefs::instance()->mNextXDays = mNextXDaysSpin->value();    }