svnno****@sourc*****
svnno****@sourc*****
2009年 7月 19日 (日) 07:10:13 JST
Revision: 2435 http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2435 Author: nogu Date: 2009-07-19 07:10:13 +0900 (Sun, 19 Jul 2009) Log Message: ----------- make searches case insensitive Modified Paths: -------------- kita/branches/KITA-KDE4/kita/src/bbsview.cpp Modified: kita/branches/KITA-KDE4/kita/src/bbsview.cpp =================================================================== --- kita/branches/KITA-KDE4/kita/src/bbsview.cpp 2009-07-18 22:01:20 UTC (rev 2434) +++ kita/branches/KITA-KDE4/kita/src/bbsview.cpp 2009-07-18 22:10:13 UTC (rev 2435) @@ -427,7 +427,7 @@ void BBSView::refreshFavoriteBoards() { - if (! m_favorites) { + if (!m_favorites) { m_favorites = new ListViewItem(m_boardList, QStringList(i18n("Favorites"))); } @@ -596,7 +596,7 @@ for (int k = 0, l = categoryItem->childCount(); k < l; k++) { QTreeWidgetItem* boardItem = categoryItem->child(k); QString boardName = boardItem->text(0); - if (boardName.contains(str)) { + if (boardName.contains(str, Qt::CaseInsensitive)) { boardItem->setHidden(false); matched = true; } else {