diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-05 15:33:48 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-05 07:38:19 -0700 |
commit | dfb3e2cbeab9ccae550a34982a4c9f28d7062418 (patch) | |
tree | 54e33c3cdbfa8f13377818f6065c0e4f0dcff7a9 /qt-ui/profilegraphics.cpp | |
parent | 98953831cd26eb62aba4e9e4691d9194c9924caa (diff) | |
download | subsurface-dfb3e2cbeab9ccae550a34982a4c9f28d7062418.tar.gz |
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>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r-- | qt-ui/profilegraphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |