comparison src/historywidget.cpp @ 566:1e76d1009167

Show matching branch names in search results as well as matching on comment
author Chris Cannam
date Wed, 29 Feb 2012 10:44:34 +0000
parents 533519ebc0cb
children 88ec0ae91dcc
comparison
equal deleted inserted replaced
565:c2e212ab0068 566:1e76d1009167
324 foreach (QGraphicsItem *it, items) { 324 foreach (QGraphicsItem *it, items) {
325 325
326 ChangesetItem *csit = dynamic_cast<ChangesetItem *>(it); 326 ChangesetItem *csit = dynamic_cast<ChangesetItem *>(it);
327 if (!csit) continue; 327 if (!csit) continue;
328 328
329 bool matched = csit->setSearchText(m_searchText); 329 bool matched = csit->matchSearchText(m_searchText);
330 if (matched && (!toFocus || csit->row() < toFocus->row())) { 330 if (matched && (!toFocus || csit->row() < toFocus->row())) {
331 toFocus = csit; 331 toFocus = csit;
332 } 332 }
333 csit->update(); 333 csit->update();
334 } 334 }