From 748f48007721a6d6149091ef037412225ce97c7a Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 30 Sep 2017 20:43:57 +0300 Subject: [PATCH] Add missing update calls --- include/RoomInfoListItem.h | 1 + include/TopRoomBar.h | 4 ++++ src/TopRoomBar.cc | 1 + src/UserInfoWidget.cc | 2 ++ 4 files changed, 8 insertions(+) diff --git a/include/RoomInfoListItem.h b/include/RoomInfoListItem.h index 21001a9c..8947ee8e 100644 --- a/include/RoomInfoListItem.h +++ b/include/RoomInfoListItem.h @@ -125,4 +125,5 @@ inline void RoomInfoListItem::setDescriptionMessage(const DescInfo &info) { lastMsgInfo_ = info; + update(); } diff --git a/include/TopRoomBar.h b/include/TopRoomBar.h index 9dcd4e18..6b24cbef 100644 --- a/include/TopRoomBar.h +++ b/include/TopRoomBar.h @@ -77,12 +77,14 @@ inline void TopRoomBar::updateRoomAvatar(const QImage &avatar_image) { avatar_->setImage(avatar_image); + update(); } inline void TopRoomBar::updateRoomAvatar(const QIcon &icon) { avatar_->setIcon(icon); + update(); } inline void @@ -91,6 +93,7 @@ TopRoomBar::updateRoomName(const QString &name) QString elidedText = QFontMetrics(nameLabel_->font()).elidedText(name, Qt::ElideRight, width() * 0.8); nameLabel_->setText(elidedText); + update(); } inline void @@ -102,4 +105,5 @@ TopRoomBar::updateRoomTopic(QString topic) QFontMetrics(topicLabel_->font()).elidedText(topic, Qt::ElideRight, width() * 0.6); topicLabel_->setText(topic); + update(); } diff --git a/src/TopRoomBar.cc b/src/TopRoomBar.cc index 4f2a5d83..130e18f1 100644 --- a/src/TopRoomBar.cc +++ b/src/TopRoomBar.cc @@ -108,6 +108,7 @@ TopRoomBar::updateRoomAvatarFromName(const QString &name) letter = name[0]; avatar_->setLetter(letter); + update(); } void diff --git a/src/UserInfoWidget.cc b/src/UserInfoWidget.cc index 463b3c6c..a14836ac 100644 --- a/src/UserInfoWidget.cc +++ b/src/UserInfoWidget.cc @@ -156,6 +156,7 @@ UserInfoWidget::setAvatar(const QImage &img) { avatar_image_ = img; userAvatar_->setImage(img); + update(); } void @@ -168,6 +169,7 @@ UserInfoWidget::setDisplayName(const QString &name) displayNameLabel_->setText(display_name_); userAvatar_->setLetter(QChar(display_name_[0])); + update(); } void