svnno****@sourc*****
svnno****@sourc*****
2009年 7月 19日 (日) 19:22:00 JST
Revision: 2443 http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2443 Author: nogu Date: 2009-07-19 19:22:00 +0900 (Sun, 19 Jul 2009) Log Message: ----------- minor changes Modified Paths: -------------- kita/branches/KITA-KDE4/kita/src/threadlistview.cpp Modified: kita/branches/KITA-KDE4/kita/src/threadlistview.cpp =================================================================== --- kita/branches/KITA-KDE4/kita/src/threadlistview.cpp 2009-07-19 08:08:52 UTC (rev 2442) +++ kita/branches/KITA-KDE4/kita/src/threadlistview.cpp 2009-07-19 10:22:00 UTC (rev 2443) @@ -143,16 +143,13 @@ m_hitList.clear(); m_nextHitIndex = 0; m_prevquery = query; - for (int i = 0, j = subjectList->rowCount(); i < j; i++) { subjectList->item(i, ColumnIcon)->setIcon(QIcon()); - - QStringList::const_iterator queryIt = query.begin(); - for (; queryIt != query.end(); ++queryIt) { - if (subjectList->item(i, ColumnSubject) - ->text().contains(*queryIt, Qt::CaseInsensitive)) { + for (int k = 0, l = query.count(); k < l; k++) { + if (subjectList->item(i, ColumnSubject)->text() + .contains(query[k], Qt::CaseInsensitive)) { subjectList->item(i, ColumnIcon) - ->setIcon(QIcon(SmallIcon("edit-find"))); + ->setIcon(SmallIcon("edit-find")); m_hitList.append(subjectList->item(i, 0)); break; }