author | zautrix <zautrix> | 2005-06-15 10:22:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-15 10:22:38 (UTC) |
commit | 13c00953a9d521873b03f861e54e83e33b30bc96 (patch) (unidiff) | |
tree | 05bc1f7b6d95b68e0d579e70a487c8a48f250a6f /korganizer/koprefsdialog.cpp | |
parent | 37175a31a8fa8772403e9588ff3f8bd7de3979cc (diff) | |
download | kdepimpi-13c00953a9d521873b03f861e54e83e33b30bc96.zip kdepimpi-13c00953a9d521873b03f861e54e83e33b30bc96.tar.gz kdepimpi-13c00953a9d521873b03f861e54e83e33b30bc96.tar.bz2 |
fixxx
Diffstat (limited to 'korganizer/koprefsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koprefsdialog.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 3ee9a22..35a56ca 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -1444,49 +1444,48 @@ void KOPrefsDialog::usrWriteConfig() | |||
1444 | KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); | 1444 | KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); |
1445 | 1445 | ||
1446 | QDictIterator<QColor> it(mCategoryDict); | 1446 | QDictIterator<QColor> it(mCategoryDict); |
1447 | while (it.current()) { | 1447 | while (it.current()) { |
1448 | KOPrefs::instance()->setCategoryColor(it.currentKey(),*it.current()); | 1448 | KOPrefs::instance()->setCategoryColor(it.currentKey(),*it.current()); |
1449 | ++it; | 1449 | ++it; |
1450 | } | 1450 | } |
1451 | 1451 | ||
1452 | KOPrefs::instance()->mNextXDays = mNextXDaysSpin->value(); | 1452 | KOPrefs::instance()->mNextXDays = mNextXDaysSpin->value(); |
1453 | KOPrefs::instance()->mWhatsNextDays = mWhatsNextSpin->value(); | 1453 | KOPrefs::instance()->mWhatsNextDays = mWhatsNextSpin->value(); |
1454 | KOPrefs::instance()->mWhatsNextPrios = mPrioSpin->value(); | 1454 | KOPrefs::instance()->mWhatsNextPrios = mPrioSpin->value(); |
1455 | 1455 | ||
1456 | KOPrefs::instance()->mAdditionalMails.clear(); | 1456 | KOPrefs::instance()->mAdditionalMails.clear(); |
1457 | // QListViewItem *item; | 1457 | // QListViewItem *item; |
1458 | // item = mAMails->firstChild(); | 1458 | // item = mAMails->firstChild(); |
1459 | // while (item) | 1459 | // while (item) |
1460 | // { | 1460 | // { |
1461 | // KOPrefs::instance()->mAdditionalMails.append( item->text(0) ); | 1461 | // KOPrefs::instance()->mAdditionalMails.append( item->text(0) ); |
1462 | // item = item->nextSibling(); | 1462 | // item = item->nextSibling(); |
1463 | // } | 1463 | // } |
1464 | KOPrefs::instance()->mAlarmPlayBeeps = mAlarmPlayBeeps->value(); | 1464 | KOPrefs::instance()->mAlarmPlayBeeps = mAlarmPlayBeeps->value(); |
1465 | KOPrefs::instance()->mAlarmSuspendTime = mAlarmSuspendTime->value() ; | 1465 | KOPrefs::instance()->mAlarmSuspendTime = mAlarmSuspendTime->value() ; |
1466 | KOPrefs::instance()->mAlarmSuspendCount= mAlarmSuspendCount->value() ; | 1466 | KOPrefs::instance()->mAlarmSuspendCount= mAlarmSuspendCount->value() ; |
1467 | KOPrefs::instance()->mAlarmBeepInterval= mAlarmBeepInterval->value() ; | 1467 | KOPrefs::instance()->mAlarmBeepInterval= mAlarmBeepInterval->value() ; |
1468 | |||
1469 | } | 1468 | } |
1470 | 1469 | ||
1471 | void KOPrefsDialog::updateCategories() | 1470 | void KOPrefsDialog::updateCategories() |
1472 | { | 1471 | { |
1473 | mCategoryCombo->clear(); | 1472 | mCategoryCombo->clear(); |
1474 | mCategoryDict.clear(); | 1473 | mCategoryDict.clear(); |
1475 | mCategoryCombo->insertStringList(KOPrefs::instance()->mCustomCategories); | 1474 | mCategoryCombo->insertStringList(KOPrefs::instance()->mCustomCategories); |
1476 | updateCategoryColor(); | 1475 | updateCategoryColor(); |
1477 | } | 1476 | } |
1478 | 1477 | ||
1479 | void KOPrefsDialog::toggleEmailSettings(bool on) | 1478 | void KOPrefsDialog::toggleEmailSettings(bool on) |
1480 | { | 1479 | { |
1481 | if (on) { | 1480 | if (on) { |
1482 | mEmailEdit->setEnabled(false); | 1481 | mEmailEdit->setEnabled(false); |
1483 | mNameEdit->setEnabled(false); | 1482 | mNameEdit->setEnabled(false); |
1484 | mEmailLabel->setEnabled(false); | 1483 | mEmailLabel->setEnabled(false); |
1485 | mNameLabel->setEnabled(false); | 1484 | mNameLabel->setEnabled(false); |
1486 | 1485 | ||
1487 | KEMailSettings settings; | 1486 | KEMailSettings settings; |
1488 | mNameEdit->setText(settings.getSetting(KEMailSettings::RealName)); | 1487 | mNameEdit->setText(settings.getSetting(KEMailSettings::RealName)); |
1489 | mEmailEdit->setText(settings.getSetting(KEMailSettings::EmailAddress)); | 1488 | mEmailEdit->setText(settings.getSetting(KEMailSettings::EmailAddress)); |
1490 | } else { | 1489 | } else { |
1491 | mEmailEdit->setEnabled(true); | 1490 | mEmailEdit->setEnabled(true); |
1492 | mNameEdit->setEnabled(true); | 1491 | mNameEdit->setEnabled(true); |