diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-09 02:17:04 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-09 02:17:04 +0300 |
commit | 239780557f6641c225828e0cb6508f47c0bc15aa (patch) | |
tree | 1a064cfd3cdb11dd46aa7b04737e7a07c2333eba /src/TopRoomBar.cc | |
parent | f50fb34fb69744ca91091b6cfadd87c9b32dbf41 (diff) |
Add logout button
Logout from the current session and invalidate the current token
Diffstat (limited to 'src/TopRoomBar.cc')
-rw-r--r-- | src/TopRoomBar.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/TopRoomBar.cc b/src/TopRoomBar.cc index 7e390bdf..3c05a953 100644 --- a/src/TopRoomBar.cc +++ b/src/TopRoomBar.cc @@ -77,6 +77,13 @@ TopRoomBar::TopRoomBar(QWidget *parent) setLayout(top_layout_); } +void TopRoomBar::reset() +{ + name_label_->setText(""); + topic_label_->setText(""); + avatar_->setLetter(QChar('?')); +} + void TopRoomBar::paintEvent(QPaintEvent *event) { Q_UNUSED(event); |