From 21c68c5824b814be4e3158c6166a27d7f4e6d3bb Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Mon, 30 Apr 2018 09:27:12 +0300 Subject: [PATCH] Show room tooltips when the sidebar is collapsed --- src/RoomInfoListItem.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/RoomInfoListItem.cc b/src/RoomInfoListItem.cc index 981908e2..a10ad619 100644 --- a/src/RoomInfoListItem.cc +++ b/src/RoomInfoListItem.cc @@ -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); }