From dfb3e2cbeab9ccae550a34982a4c9f28d7062418 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 5 Jul 2013 15:33:48 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profilegraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 1cdd2d6e0..4a17dbca1 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -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); } -- cgit v1.2.3-70-g09d2