1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor: GroupChatForm::onUserListChanged is a slot now

This commit is contained in:
noavarice 2017-08-12 12:13:10 +03:00
parent 1ac97c4734
commit 30cae05d26
No known key found for this signature in database
GPG Key ID: 52A50775BE13DF17
3 changed files with 2 additions and 3 deletions

View File

@ -62,7 +62,6 @@ void Group::updatePeer(int peerId, QString name)
peers[peerId] = f->getDisplayedName();
toxids[peerPk] = f->getDisplayedName();
} else {
chatForm->onUserListChanged();
emit userListChanged(groupId, toxids);
}
}
@ -110,7 +109,6 @@ void Group::regeneratePeerList()
}
}
chatForm->onUserListChanged();
emit userListChanged(groupId, toxids);
}

View File

@ -110,6 +110,7 @@ GroupChatForm::GroupChatForm(Group* chatGroup)
chatGroup->setName(newName);
}
});
connect(group, &Group::userListChanged, this, &GroupChatForm::onUserListChanged);
setAcceptDrops(true);
Translator::registerHandler(std::bind(&GroupChatForm::retranslateUi, this), this);

View File

@ -38,7 +38,6 @@ public:
explicit GroupChatForm(Group* chatGroup);
~GroupChatForm();
void onUserListChanged();
void peerAudioPlaying(int peer);
private slots:
@ -46,6 +45,7 @@ private slots:
void onMicMuteToggle();
void onVolMuteToggle();
void onCallClicked();
void onUserListChanged();
protected:
virtual GenericNetCamView* createNetcam() final override;