QTfrontend/chatwidget.cpp
changeset 5140 932307228d05
parent 5094 9c3553254100
child 5238 46ddaf14509d
equal deleted inserted replaced
5139:090a8b8d1083 5140:932307228d05
   407 }
   407 }
   408 
   408 
   409 void HWChatWidget::nickRemoved(const QString& nick)
   409 void HWChatWidget::nickRemoved(const QString& nick)
   410 {
   410 {
   411     QList<QListWidgetItem *> items = chatNicks->findItems(nick, Qt::MatchExactly);
   411     QList<QListWidgetItem *> items = chatNicks->findItems(nick, Qt::MatchExactly);
   412     for(QList<QListWidgetItem *>::iterator it=items.begin(); it!=items.end();) {
   412     QListIterator<QListWidgetItem *> it(items);
   413         chatNicks->takeItem(chatNicks->row(*it));
   413     while(it.hasNext()) chatNicks->takeItem(chatNicks->row(it.next()));
   414         ++it;
       
   415     }
       
   416 
   414 
   417     lblCount->setText(QString::number(chatNicks->count()));
   415     lblCount->setText(QString::number(chatNicks->count()));
   418 }
   416 }
   419 
   417 
   420 void HWChatWidget::clear()
   418 void HWChatWidget::clear()