2003-11-26 Hideki Ikemoto <ikemo@users.sourceforge.jp>
* write kakiko to $KDEHOME/share/apps/kita/log.txt
+ * search text by case insensitive.
2003-11-24 Hideki Ikemoto <ikemo@users.sourceforge.jp>
QStringList::const_iterator queryIt = query.begin();
for( ; queryIt != query.end(); ++queryIt ) {
- if( item->text(Row_Subject).contains(*queryIt) ) {
+ if( item->text( Row_Subject ).contains( *queryIt, false ) ) {
item->setPixmap(Row_Icon, SmallIcon("find") );
m_hitList.append(item);
break;
int pos = 1;
QString message = *it_msg;
if( message.at(0) == '<' ) continue;
- while ( (pos = (*it_msg).find(*it, pos)) != -1 ) {
+ while ( (pos = (*it_msg).find(*it, pos, false)) != -1 ) {
QString replace = QString("<font class=\"highlight\" id=\"highlighten%2\">").arg( m_hitCount );
- replace += *it;
+// replace += *it;
+ replace += message.mid( pos, (*it).length() );
replace += "</font>";
message.replace(pos, (*it).length(), replace);
pos += replace.length();