QTfrontend/chatwidget.cpp
changeset 3697 d5b30d6373fc
parent 3236 4ab3917d7d44
child 3790 8f48b54f42ce
equal deleted inserted replaced
3695:c11abf387a7d 3697:d5b30d6373fc
   104 
   104 
   105     chatNicks->insertAction(0, acInfo);
   105     chatNicks->insertAction(0, acInfo);
   106     chatNicks->insertAction(0, acFollow);
   106     chatNicks->insertAction(0, acFollow);
   107     chatNicks->insertAction(0, acIgnore);
   107     chatNicks->insertAction(0, acIgnore);
   108     chatNicks->insertAction(0, acFriend);
   108     chatNicks->insertAction(0, acFriend);
   109     
   109 
   110     showReady = false;
   110     showReady = false;
   111 }
   111 }
   112 
   112 
   113 void HWChatWidget::loadList(QStringList & list, const QString & file)
   113 void HWChatWidget::loadList(QStringList & list, const QString & file)
   114 {
   114 {
   207             return;
   207             return;
   208     }
   208     }
   209 
   209 
   210     QString color("");
   210     QString color("");
   211     bool isFriend = friendsList.contains(parts[0], Qt::CaseInsensitive);
   211     bool isFriend = friendsList.contains(parts[0], Qt::CaseInsensitive);
   212     
   212 
   213     if (str.startsWith("\x03"))
   213     if (str.startsWith("\x03"))
   214         color = QString("#c0c0c0");
   214         color = QString("#c0c0c0");
   215     else if (str.startsWith("\x02"))
   215     else if (str.startsWith("\x02"))
   216         color = QString(isFriend ? "#00ff00" : "#ff00ff");
   216         color = QString(isFriend ? "#00ff00" : "#ff00ff");
   217     else if (isFriend)
   217     else if (isFriend)