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:
Gavin Bisesi 2017-03-17 23:13:35 -04:00 committed by Gavin Bisesi
parent 2c3b85aed3
commit d65a444ac5
11 changed files with 104 additions and 100 deletions

View file

@ -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();