";
+=20
+- Event::List events =3D d->mCalendar->events( start, d->mCalendar->t=
imeSpec(),
+- EventSortStartDate,
+- SortDirectionAscending );
+- if ( events.count() ) {
+- *ts << "";
+- Event::List::ConstIterator it;
+- for ( it =3D events.constBegin(); it !=3D events.constEnd(); ++it=
) {
+- if ( checkSecrecy( *it ) ) {
+- createEvent( ts, *it, start, false );
++ // Only print events within the from-to range
++ if ( start >=3D fromDate() && start <=3D toDate() ) {
++ Event::List events =3D d->mCalendar->events( start, d->mCalendar-=
>timeSpec(),
++ EventSortStartDate,
++ SortDirectionAscending=
);
++ if ( events.count() ) {
++ *ts << "";
++ Event::List::ConstIterator it;
++ for ( it =3D events.constBegin(); it !=3D events.constEnd(); ++=
it ) {
++ if ( checkSecrecy( *it ) ) {
++ createEvent( ts, *it, start, false );
++ }
+ }
++ *ts << " ";
++ } else {
++ *ts << " ";
+ }
+- *ts << " ";
+- } else {
+- *ts << " ";
+ }
+=20
+ *ts << " |
"<