From kde-pim Wed Jul 24 20:36:57 2002 From: Reinhold Kainhofer Date: Wed, 24 Jul 2002 20:36:57 +0000 To: kde-pim Subject: Re: [Kde-pim] KPilot? X-MARC-Message: https://marc.info/?l=kde-pim&m=102757781811065 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 24 July 2002 21:39, Reinhold Kainhofer wrote: > syncing monthly recurrences. Now there's only yearly recurrences > left (I fogot to set on which the event should occur ...), which > will be fixed real soon. Which means, the fix is in cvs by now. However, I have a problem=20 with yearly recurences (by day) in KCal::Recurrence. If you need to=20 set the recurrence to the n-th of a certain month (not the n-th=20 weekday in month x), do I really have to use rYearlyDay? AFAIU=20 rYearlyPos lets you set yearly recurrences on e.g. the first friday=20 in October, but not on October 3rd. So you have to calculate the=20 day of year using QDate::dayOfYear and set it via addYearlyNum.=20 I tried both=20 =09recur->setYearly(Recurrence_t::rYearlyDay,freq,endDate); =09recur->addYearlyNum( recdate.dayOfYear() ); and=20 =09recur->setYearly(Recurrence_t::rYearlyPos,freq,endDate); =09recur->addYearlyNum( evt.month() ); =09dayArray.setBit((evt.day()-1) % 7); =09recur->addYearlyMonthPos( ( (evt.day()-1) / 7) + 1, dayArray ); While the first has a yearly recurrence, but really on the n-th day=20 of the year (meaning in leap years like 2004 the event is shifted=20 one day), the second does not even show a recurrence. It is maked=20 as a recurring event in korganizer, but in the recurrence tab in=20 korganizer, none of the radiobuttons is marked.. What am I doing wrong? And how can I set an event to recur on July=20 24? Thanks Reinhold -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9Pw/pTqjEwhXvPN0RAqNEAKCuewRUEHV/OI8DdBpUQhuvyDj3wgCgtg3i SOxv1weElDnvezh+4jPImoQ=3D =3DXazb -----END PGP SIGNATURE----- _______________________________________________ kde-pim mailing list kde-pim@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-pim kde-pim home page at http://pim.kde.org/