author | zautrix <zautrix> | 2005-01-14 22:24:22 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-14 22:24:22 (UTC) |
commit | d937154e5ae3691dda55fac9114142f92e29e37b (patch) (side-by-side diff) | |
tree | 8c8960d6f4fb9a097a462240953a1f5a5603c5c5 /libkdepim/ksyncprefsdialog.cpp | |
parent | ee9df90c4898f4ed624be2d4e94918fcc80060e9 (diff) | |
download | kdepimpi-d937154e5ae3691dda55fac9114142f92e29e37b.zip kdepimpi-d937154e5ae3691dda55fac9114142f92e29e37b.tar.gz kdepimpi-d937154e5ae3691dda55fac9114142f92e29e37b.tar.bz2 |
filtersettings complete
Diffstat (limited to 'libkdepim/ksyncprefsdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libkdepim/ksyncprefsdialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index 6e42fd4..2101bbb 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp @@ -358,25 +358,26 @@ void KSyncPrefsDialog::setupSyncAlgTab() } // ****************************************** // Profile kind specific settings END } - - void KSyncPrefsDialog::readFilter() { mFilterKapi.clear(); mFilterKopi.clear(); - mFilterKopi.append(i18n("No Filter") ); - mFilterKapi.append(i18n("No Filter") ); KConfig cfgko(locateLocal("config","korganizerrc")); KConfig cfgka(locateLocal("config","kaddressbookrc")); cfgko.setGroup("General"); mFilterKopi = cfgko.readListEntry("CalendarFilters"); - mFilterKapi = mFilterKopi; + cfgka.setGroup("Filter"); + int count = cfgka.readNumEntry( "Count", 0 ); + for ( int i = 0; i < count; i++ ) { + cfgka.setGroup("Filter_"+QString::number( i ) ); + mFilterKapi.append( cfgka.readEntry("Name", "internal error") ); + } mFilterOutCal->clear(); mFilterInCal->clear(); mFilterOutAB->clear(); mFilterInAB->clear(); QStringList temp = mFilterKopi; temp.prepend(i18n("No Filter") ); @@ -385,13 +386,12 @@ void KSyncPrefsDialog::readFilter() temp = mFilterKapi; temp.prepend(i18n("No Filter") ); mFilterOutAB->insertStringList( temp ); mFilterInAB->insertStringList( temp ); } - void KSyncPrefsDialog::slotOK() { if ( mMyMachineName->text() == "undefined" ) { KMessageBox::error(this,i18n("Local device name undefined!\nPlease define device name!"),i18n("KO/Pi config error")); return; } |