Changeset View
Changeset View
Standalone View
Standalone View
src/dialog/searchdialog.cpp
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Line(s) | 217 | for (const KCalCore::Incidence::Ptr &ev : incidences) { | |||
---|---|---|---|---|---|
238 | if (m_ui->locationCheck->isChecked()) { | 238 | if (m_ui->locationCheck->isChecked()) { | ||
239 | if (re.indexIn(ev->location()) != -1) { | 239 | if (re.indexIn(ev->location()) != -1) { | ||
240 | mMatchedEvents.append(item); | 240 | mMatchedEvents.append(item); | ||
241 | continue; | 241 | continue; | ||
242 | } | 242 | } | ||
243 | } | 243 | } | ||
244 | if (m_ui->attendeeCheck->isChecked()) { | 244 | if (m_ui->attendeeCheck->isChecked()) { | ||
245 | const KCalCore::Attendee::List lstAttendees = ev->attendees(); | 245 | const KCalCore::Attendee::List lstAttendees = ev->attendees(); | ||
246 | for (const KCalCore::Attendee::Ptr &attendee : lstAttendees) { | 246 | for (const KCalCore::Attendee &attendee : lstAttendees) { | ||
247 | if (re.indexIn(attendee->fullName()) != -1) { | 247 | if (re.indexIn(attendee.fullName()) != -1) { | ||
248 | mMatchedEvents.append(item); | 248 | mMatchedEvents.append(item); | ||
249 | break; | 249 | break; | ||
250 | } | 250 | } | ||
251 | } | 251 | } | ||
252 | } | 252 | } | ||
253 | } | 253 | } | ||
254 | } | 254 | } | ||
255 | 255 | | |||
Show All 20 Lines |