Other mentions -- DRAFT --

Mentions about other players currently in the room will be highlighted.
They are also clickable for mentions and right clickable for context
options.
This commit is contained in:
Matt Lowe 2015-01-22 09:32:56 +01:00
parent 0daa7a8809
commit 0334fe3c8f
2 changed files with 37 additions and 10 deletions

View file

@ -6,11 +6,11 @@
#include <QTextCursor>
#include <QColor>
#include "user_level.h"
#include "tab_supervisor.h"
class QTextTable;
class QMouseEvent;
class UserContextMenu;
class TabSupervisor;
class TabGame;
class ChatView : public QTextBrowser {
@ -25,6 +25,7 @@ private:
QString userName;
QString mention;
QTextCharFormat mentionFormat;
QTextCharFormat mentionFormatOtherUser;
QTextCharFormat defaultFormat;
bool evenNumber;
bool showTimestamps;