author | zautrix <zautrix> | 2005-06-10 20:13:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-10 20:13:31 (UTC) |
commit | cdc55afb3d2c3ebd970843b7dce02acb1e6a189b (patch) (side-by-side diff) | |
tree | 45f3bfa69a72de4e8b53bbcb2414478ec65cd183 /libkcal/calfilter.cpp | |
parent | 31fed261955dcb25d06052a8154ac4cc630b0f7d (diff) | |
download | kdepimpi-cdc55afb3d2c3ebd970843b7dce02acb1e6a189b.zip kdepimpi-cdc55afb3d2c3ebd970843b7dce02acb1e6a189b.tar.gz kdepimpi-cdc55afb3d2c3ebd970843b7dce02acb1e6a189b.tar.bz2 |
many preparations for multiple calendars
-rw-r--r-- | libkcal/calfilter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libkcal/calfilter.cpp b/libkcal/calfilter.cpp index 20078a7..3510c7d 100644 --- a/libkcal/calfilter.cpp +++ b/libkcal/calfilter.cpp @@ -78,6 +78,8 @@ void CalFilter::apply(QPtrList<Todo> *eventlist) } bool CalFilter::filterCalendarItem(Incidence *in) { + if ( !in->calEnabled() ) + return false; if ( in->typeID() == eventID ) return filterEvent( (Event*) in ); else if ( in->typeID() == todoID ) @@ -88,6 +90,9 @@ bool CalFilter::filterCalendarItem(Incidence *in) } bool CalFilter::filterEvent(Event *event) { + + if ( !event->calEnabled() ) + return false; if (mCriteria & HideEvents) return false; if (mCriteria & HideRecurring) { @@ -98,12 +103,16 @@ bool CalFilter::filterEvent(Event *event) } bool CalFilter::filterJournal(Journal *j) { + if ( !j->calEnabled() ) + return false; if (mCriteria & HideJournals) return false; return true; } bool CalFilter::filterTodo(Todo *todo) { + if ( !todo->calEnabled() ) + return false; if (mCriteria & HideTodos) return false; if (mCriteria & HideCompleted) { |