mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Messages
This commit is contained in:
@@ -103,7 +103,7 @@ void ViewerTrainees::slot_receiveMessage(ClientMessage clientMessage)
|
||||
int id_trainee = clientMessage.fromId.toInt();
|
||||
|
||||
mtxmapNewMsg.lock();
|
||||
mapNewMsg.insert(id_trainee, true);
|
||||
mapNewMsg.insert(id_trainee, mapNewMsg.value(id_trainee) + 1);
|
||||
mtxmapNewMsg.unlock();
|
||||
|
||||
slot_NeedUpdateUI(false, true);
|
||||
@@ -202,6 +202,8 @@ void ViewerTrainees::on_treeWidgetItemClicked(QTreeWidgetItem *item, int column)
|
||||
item->setBackground(i, QBrush(Qt::GlobalColor::white));
|
||||
}
|
||||
mapNewMsg.take(newCurrentID);
|
||||
item->setIcon(ColumnsTreeUsers::clmn_Messages, QIcon());
|
||||
item->setText(ColumnsTreeUsers::clmn_Messages, "");
|
||||
}
|
||||
}
|
||||
mtxmapNewMsg.unlock();
|
||||
|
||||
Reference in New Issue
Block a user