Пример #1
0
void GroupProfileGUI::refreshProfile()
{
    //retrieve information
    groupName = group->getProfile()->getFullName();
    groupDescription = group->getProfile()->getDescription();
    photoPath = group->getProfile()->getPicturePath();


    this->setWindowTitle(groupName + "'s Profile");
    ui->groupNameLabel->setText(groupName);
    ui->descriptionBrowser->setText(groupDescription);
    loadPhoto();
    refreshMembers();
}
void ChannelMembersWidget::notifyPeerUpdated(const Notify::PeerUpdate &update) {
	if (update.peer != peer()) {
		return;
	}

	if (update.flags & (UpdateFlag::ChannelCanViewAdmins | UpdateFlag::AdminsChanged)) {
		refreshAdmins();
	}
	if (update.flags & (UpdateFlag::ChannelCanViewMembers | UpdateFlag::MembersChanged)) {
		refreshMembers();
	}
	refreshVisibility();

	contentSizeUpdated();
}
void ChannelMembersWidget::refreshButtons() {
	refreshAdmins();
	refreshMembers();

	refreshVisibility();
}