Оповещения о непрочитанных сообщениях

This commit is contained in:
2025-12-01 14:29:26 +03:00
parent 834e192479
commit c97c86ac55
10 changed files with 116 additions and 0 deletions

View File

@@ -89,6 +89,24 @@ void InstructorsView::loadInstructorsFromDB()
if(! instructor.getLoggedIn())
if(! notLoggedInVisible)
ItemInstructor->setHidden(true);
mtxmapNewMsg.lock();
if(mapNewMsg.contains(instructor.getID()))
{//Есть непрочитанные сообщения от него
if(mapNewMsg.value(instructor.getID()))
{
if(lastCurrentID == instructor.getID())
mapNewMsg.take(lastCurrentID);
else
{
for (int i = 0; i < ColumnsTreeUsers::clmn_count; i++)
{
ItemInstructor->setBackground(i, QBrush(QColor(250, 210, 1)));
}
}
}
}
mtxmapNewMsg.unlock();
}
treeWidget->expandAll();