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

View file

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