Пример #1
0
void ContentDialogManager::updateGroupStatus(const GroupId& groupId)
{
    auto dialog = contactDialogs.value(groupId);
    if (dialog == nullptr) {
        return;
    }

    dialog->updateContactStatusLight(groupId);
    if (dialog->isContactWidgetActive(groupId)) {
        dialog->updateTitleAndStatusIcon();
    }
}
Пример #2
0
void ContentDialogManager::updateFriendStatus(const ToxPk& friendPk)
{
    auto dialog = contactDialogs.value(friendPk);
    if (dialog == nullptr) {
        return;
    }

    dialog->updateContactStatusLight(friendPk);
    if (dialog->isContactWidgetActive(friendPk)) {
        dialog->updateTitleAndStatusIcon();
    }

    Friend* f = FriendList::findFriend(friendPk);
    dialog->updateFriendStatus(friendPk, f->getStatus());
}
Пример #3
0
void ContentDialog::retranslateUi()
{
    updateTitleAndStatusIcon(Core::getInstance()->getUsername());
}
Пример #4
0
void ContentDialog::updateTitle(GenericChatroomWidget* chatroomWidget)
{
    displayWidget = chatroomWidget;
    updateTitleAndStatusIcon(Core::getInstance()->getUsername());
}