summaryrefslogtreecommitdiffstats
path: root/src/TopRoomBar.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-09 02:17:04 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-09 02:17:04 +0300
commit239780557f6641c225828e0cb6508f47c0bc15aa (patch)
tree1a064cfd3cdb11dd46aa7b04737e7a07c2333eba /src/TopRoomBar.cc
parentf50fb34fb69744ca91091b6cfadd87c9b32dbf41 (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.cc7
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);