mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Show room tooltips when the sidebar is collapsed
This commit is contained in:
parent
62d54146a7
commit
21c68c5824
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue