equal
deleted
inserted
replaced
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() |