Show room tooltips when the sidebar is collapsed

This commit is contained in:
Konstantinos Sideris 2018-04-30 09:27:12 +03:00
parent 62d54146a7
commit 21c68c5824
1 changed files with 5 additions and 0 deletions

View File

@ -107,6 +107,11 @@ RoomInfoListItem::resizeEvent(QResizeEvent *)
QPainterPath path;
path.addRect(0, 0, width(), height());
if (width() > ui::sidebar::SmallSize)
setToolTip("");
else
setToolTip(roomName_);
ripple_overlay_->setClipPath(path);
ripple_overlay_->setClipping(true);
}