[PATCH 1/4] Profile: collapse tooltip back to original height

Lubomir I. Ivanov neolit123 at gmail.com
Fri Jul 5 05:33:48 PDT 2013


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

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 at gmail.com>
---
 qt-ui/profilegraphics.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 1cdd2d6..4a17dbc 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);
 	}
 
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list