equal
deleted
inserted
replaced
464 default: |
464 default: |
465 if (isFriend) |
465 if (isFriend) |
466 cssClass = "msg_FriendChat"; |
466 cssClass = "msg_FriendChat"; |
467 } |
467 } |
468 |
468 |
469 addLine(cssClass, formattedStr, (!nick.isEmpty()) && str.contains(m_userNick)); |
469 bool isHL = (!nick.isEmpty() && |
|
470 (nick != m_userNick) && |
|
471 str.toLower().contains( |
|
472 QRegExp(QString("^(.* )?%1(( |: ).*)?$"). |
|
473 arg(QRegExp::escape(m_userNick).toLower()))) |
|
474 ); |
|
475 |
|
476 addLine(cssClass, formattedStr, isHL); |
470 } |
477 } |
471 |
478 |
472 void HWChatWidget::addLine(const QString & cssClass, QString line, bool isHighlight) |
479 void HWChatWidget::addLine(const QString & cssClass, QString line, bool isHighlight) |
473 { |
480 { |
474 if (s_displayNone->contains(cssClass)) |
481 if (s_displayNone->contains(cssClass)) |