rem: QDateTime start = event()->dtStart(); QDateTime end = event()->dtEnd();  if ( event()->doesRecur() ) { start.setDate( mDay ); end.setDate( mDay ); } QDateTime otherStart = other->event()->dtStart(); QDateTime otherEnd = other->event()->dtEnd();  if ( other->event()->doesRecur() ) { otherStart.setDate( mDay ); otherEnd.setDate( mDay ); }
context:     bool overlaps( KOrg::CellItem *o ) const    {      PrintCellItem *other = static_cast<PrintCellItem *>( o );      QDateTime start = event()->dtStart();      QDateTime end = event()->dtEnd();// FIXME: This breaks with recurring multi-day events!      if ( event()->doesRecur() ) {        start.setDate( mDay );        end.setDate( mDay );      }      QDateTime otherStart = other->event()->dtStart();      QDateTime otherEnd = other->event()->dtEnd();// FIXME: This breaks with recurring multi-day events!      if ( other->event()->doesRecur() ) {        otherStart.setDate( mDay );        otherEnd.setDate( mDay );      }#if 0      kdDebug(5850) << "PrintCellItem::overlaps() " << event()->summary()                    << " <-> " << other->event()->summary() << endl;      kdDebug(5850) << "  start     : " << start.toString() << endl;      kdDebug(5850) << "  end       : " << end.toString() << endl;      kdDebug(5850) << "  otherStart: " << otherStart.toString() << endl;      kdDebug(5850) << "  otherEnd  : " << otherEnd.toString() << endl;#endif      return !( otherStart >= end || otherEnd <= start );    }