mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Profile: collapse tooltip back to original height
When collapsing the tooltip we want it's border to become the same height as when no tooltip info was visible - i.e. post creation. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
98953831cd
commit
dfb3e2cbea
1 changed files with 1 additions and 1 deletions
|
@ -1331,7 +1331,7 @@ void ToolTipItem::updateTitlePosition()
|
|||
if (rectangle.width() < title->boundingRect().width() + SPACING*4) {
|
||||
QRectF newRect = rectangle;
|
||||
newRect.setWidth(title->boundingRect().width() + SPACING*4);
|
||||
newRect.setHeight(newRect.height() ? newRect.height() : ICON_SMALL);
|
||||
newRect.setHeight((newRect.height() && isExpanded()) ? newRect.height() : ICON_SMALL);
|
||||
setRect(newRect);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue