Changeset View
Changeset View
Standalone View
Standalone View
src/htmlexport.cpp
Show First 20 Lines • Show All 617 Lines • ▼ Show 20 Line(s) | 613 | { | |||
---|---|---|---|---|---|
618 | } | 618 | } | ||
619 | } | 619 | } | ||
620 | 620 | | |||
621 | void HtmlExport::formatAttendees(QTextStream *ts, const Incidence::Ptr &incidence) | 621 | void HtmlExport::formatAttendees(QTextStream *ts, const Incidence::Ptr &incidence) | ||
622 | { | 622 | { | ||
623 | Attendee::List attendees = incidence->attendees(); | 623 | Attendee::List attendees = incidence->attendees(); | ||
624 | if (attendees.count()) { | 624 | if (attendees.count()) { | ||
625 | *ts << "<em>"; | 625 | *ts << "<em>"; | ||
626 | *ts << incidence->organizer()->fullName(); | 626 | *ts << incidence->organizer().fullName(); | ||
627 | *ts << "</em><br />"; | 627 | *ts << "</em><br />"; | ||
628 | Attendee::List::ConstIterator it; | 628 | Attendee::List::ConstIterator it; | ||
629 | const Attendee::List::ConstIterator end(attendees.constEnd()); | 629 | const Attendee::List::ConstIterator end(attendees.constEnd()); | ||
630 | for (it = attendees.constBegin(); it != end; ++it) { | 630 | for (it = attendees.constBegin(); it != end; ++it) { | ||
631 | Attendee::Ptr a(*it); | 631 | Attendee::Ptr a(*it); | ||
632 | if (!a->email().isEmpty()) { | 632 | if (!a->email().isEmpty()) { | ||
633 | *ts << "<a href=\"mailto:" << a->email(); | 633 | *ts << "<a href=\"mailto:" << a->email(); | ||
634 | *ts << "\">" << cleanChars(a->name()) << "</a>"; | 634 | *ts << "\">" << cleanChars(a->name()) << "</a>"; | ||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |