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:
parent
1ac97c4734
commit
30cae05d26
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user