From ccfe3f97afd65c75ee6c7c931cb3694919a4e29b Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 15 Jun 2005 18:23:08 +0000 Subject: fixess --- (limited to 'libkcal/calendarlocal.cpp') diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index 336c3e8..8c4dde1 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp @@ -78,6 +78,16 @@ bool CalendarLocal::addCalendarFile( QString name, int id ) } return false; } +void CalendarLocal::setSyncEventsReadOnly() +{ + Event * ev; + ev = mEventList.first(); + while ( ev ) { + if ( ev->uid().left(15) == QString("last-syncEvent-") ) + ev->setReadOnly( true ); + ev = mEventList.next(); + } +} void CalendarLocal::addCalendar( Calendar* cal ) { cal->setDontDeleteIncidencesOnClose(); -- cgit v0.9.0.2