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();
|
peers[peerId] = f->getDisplayedName();
|
||||||
toxids[peerPk] = f->getDisplayedName();
|
toxids[peerPk] = f->getDisplayedName();
|
||||||
} else {
|
} else {
|
||||||
chatForm->onUserListChanged();
|
|
||||||
emit userListChanged(groupId, toxids);
|
emit userListChanged(groupId, toxids);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -110,7 +109,6 @@ void Group::regeneratePeerList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
chatForm->onUserListChanged();
|
|
||||||
emit userListChanged(groupId, toxids);
|
emit userListChanged(groupId, toxids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -110,6 +110,7 @@ GroupChatForm::GroupChatForm(Group* chatGroup)
|
||||||
chatGroup->setName(newName);
|
chatGroup->setName(newName);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
connect(group, &Group::userListChanged, this, &GroupChatForm::onUserListChanged);
|
||||||
|
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
Translator::registerHandler(std::bind(&GroupChatForm::retranslateUi, this), this);
|
Translator::registerHandler(std::bind(&GroupChatForm::retranslateUi, this), this);
|
||||||
|
|
|
@ -38,7 +38,6 @@ public:
|
||||||
explicit GroupChatForm(Group* chatGroup);
|
explicit GroupChatForm(Group* chatGroup);
|
||||||
~GroupChatForm();
|
~GroupChatForm();
|
||||||
|
|
||||||
void onUserListChanged();
|
|
||||||
void peerAudioPlaying(int peer);
|
void peerAudioPlaying(int peer);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
@ -46,6 +45,7 @@ private slots:
|
||||||
void onMicMuteToggle();
|
void onMicMuteToggle();
|
||||||
void onVolMuteToggle();
|
void onVolMuteToggle();
|
||||||
void onCallClicked();
|
void onCallClicked();
|
||||||
|
void onUserListChanged();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual GenericNetCamView* createNetcam() final override;
|
virtual GenericNetCamView* createNetcam() final override;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user