mirror of
https://github.com/PabloMK7/citra.git
synced 2025-12-14 03:08:47 +00:00
citra_qt/multiplayer: allow blocking other players in chat room
This commit is contained in:
parent
87872aa369
commit
921037a7c3
2 changed files with 50 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <unordered_set>
|
||||
#include <QDialog>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QStandardItemModel>
|
||||
|
|
@ -39,6 +40,7 @@ public slots:
|
|||
void OnChatReceive(const Network::ChatEntry&);
|
||||
void OnSendChat();
|
||||
void OnChatTextChanged();
|
||||
void PopupContextMenu(const QPoint& menu_location);
|
||||
void Disable();
|
||||
void Enable();
|
||||
|
||||
|
|
@ -51,6 +53,7 @@ private:
|
|||
bool ValidateMessage(const std::string&);
|
||||
QStandardItemModel* player_list;
|
||||
std::unique_ptr<Ui::ChatRoom> ui;
|
||||
std::unordered_set<std::string> block_list;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(Network::ChatEntry);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue