Paint RoomList's background (#137)

This commit is contained in:
Konstantinos Sideris 2017-11-25 22:20:34 +02:00
parent f0ecf6eee6
commit 54cf3418bc
4 changed files with 29 additions and 7 deletions

View file

@ -281,3 +281,12 @@ RoomList::closeLeaveRoomDialog(bool leaving, const QString &room_id)
client_->leaveRoom(room_id);
}
}
void
RoomList::paintEvent(QPaintEvent *)
{
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}