Skip to content
Snippets Groups Projects
Commit da190593 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Repaint when the room avatar is received

parent 26dfbfd0
No related branches found
No related tags found
No related merge requests found
......@@ -104,4 +104,5 @@ inline RoomState RoomInfoListItem::state() const
inline void RoomInfoListItem::setAvatar(const QImage &img)
{
roomAvatar_ = QPixmap::fromImage(img.scaled(IconSize, IconSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
update();
}
......@@ -189,13 +189,13 @@ void RoomInfoListItem::paintEvent(QPaintEvent *event)
void RoomInfoListItem::updateUnreadMessageCount(int count)
{
unreadMsgCount_ += count;
repaint();
update();
}
void RoomInfoListItem::clearUnreadMessageCount()
{
unreadMsgCount_ = 0;
repaint();
update();
}
void RoomInfoListItem::setPressedState(bool state)
......@@ -212,7 +212,7 @@ void RoomInfoListItem::setPressedState(bool state)
void RoomInfoListItem::setState(const RoomState &new_state)
{
state_ = new_state;
repaint();
update();
}
void RoomInfoListItem::contextMenuEvent(QContextMenuEvent *event)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment