summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-30 20:43:57 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-30 20:44:18 +0300
commit748f48007721a6d6149091ef037412225ce97c7a (patch)
tree2fbd41319e6e2af52dbef95888b27aba9acc5447
parentMerge pull request #3 from elopio/snapcraft (diff)
downloadnheko-748f48007721a6d6149091ef037412225ce97c7a.tar.xz
Add missing update calls
-rw-r--r--include/RoomInfoListItem.h1
-rw-r--r--include/TopRoomBar.h4
-rw-r--r--src/TopRoomBar.cc1
-rw-r--r--src/UserInfoWidget.cc2
4 files changed, 8 insertions, 0 deletions
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