--- a/QTfrontend/chatwidget.cpp Fri Oct 24 12:57:06 2008 +0000
+++ b/QTfrontend/chatwidget.cpp Fri Oct 24 13:00:53 2008 +0000
@@ -96,3 +96,18 @@
if (curritem)
emit kick(curritem->text());
}
+
+void HWChatWidget::setReadyStatus(const QString & nick, bool isReady)
+{
+ QList<QListWidgetItem *> items = chatNicks->findItems(nick, Qt::MatchExactly);
+ if (items.size() != 1)
+ {
+ qWarning("Bug: cannot find user in chat");
+ return;
+ }
+
+ if(isReady)
+ items[0]->setIcon(QIcon(":/res/checked.png"));
+ else
+ items[0]->setIcon(QIcon(":/res/unchecked.png"));
+}