mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-29 18:13:55 -07:00
Remove direct usages of TabSupervisor from Chatview
- There still might be inherited usages - It's still used in the ctor Areas to test - Mentions - Chat notifications - Username clickable links
This commit is contained in:
parent
2c3b85aed3
commit
d65a444ac5
11 changed files with 104 additions and 100 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <QMap>
|
||||
#include <QAbstractButton>
|
||||
#include "deck_loader.h"
|
||||
#include "chatview/userlistProxy.h"
|
||||
|
||||
class QMenu;
|
||||
class AbstractClient;
|
||||
|
|
@ -41,7 +42,7 @@ protected:
|
|||
void paintEvent(QPaintEvent *event);
|
||||
};
|
||||
|
||||
class TabSupervisor : public QTabWidget {
|
||||
class TabSupervisor : public QTabWidget, public UserlistProxy {
|
||||
Q_OBJECT
|
||||
private:
|
||||
ServerInfo_User *userInfo;
|
||||
|
|
@ -78,6 +79,9 @@ public:
|
|||
const QMap<int, TabRoom *> &getRoomTabs() const { return roomTabs; }
|
||||
bool getAdminLocked() const;
|
||||
bool closeRequest();
|
||||
const QString getOwnUsername() const;
|
||||
bool isUserBuddy(const QString &userName) const;
|
||||
const ServerInfo_User* getOnlineUser(const QString &userName) const;
|
||||
signals:
|
||||
void setMenu(const QList<QMenu *> &newMenuList = QList<QMenu *>());
|
||||
void localGameEnded();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue