Exemplo n.º 1
0
void AnimatedObject::Update(float timeDelta){
	UpdateMembers(timeDelta);

	timeSinceLastFrame += timeDelta;
	if (timeSinceLastFrame >= timeBetweenFrames){
		timeSinceLastFrame = 0.0f;
		if (++currentFrame >= (int)frameNames.size()){
			currentFrame = 0;
		}
	}

}
    void SelectionContactsForConference::updateMemberList()
    {
        std::shared_ptr<Data::ChatInfo> chatInfo = std::make_shared<Data::ChatInfo>();

        for (const voip_manager::Contact& contact : Ui::GetDispatcher()->getVoipController().currentCallContacts())
        {
            Data::ChatMemberInfo memberInfo;
            memberInfo.AimId_ = QString(contact.contact.c_str());
            memberInfo.NickName_ = Logic::getContactListModel()->getDisplayName(memberInfo.AimId_);
            chatInfo->Members_.push_back(memberInfo);
        }

        chatInfo->MembersCount_ = Ui::GetDispatcher()->getVoipController().currentCallContacts().size();

        conferenceMembersModel_->updateInfo(chatInfo, false);

        updateConferenceListSize();

        updateMaxSelectedCount();
        UpdateMembers();
        conferenceContacts_->update();
    }