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:
Lubomir I. Ivanov 2013-07-05 15:33:48 +03:00 committed by Dirk Hohndel
parent 98953831cd
commit dfb3e2cbea

View file

@ -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);
}