diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-05 15:33:50 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-05 07:38:27 -0700 |
commit | 2e26de5ae6bd3300153be89de080d12f4c60cfcf (patch) | |
tree | 3a3910bb6666c6da4067dccaa3f5e6948bdee32f /qt-ui/profilegraphics.h | |
parent | 3b07cd204bc79eea7ab8b9a872d8abd83b0a2cbb (diff) | |
download | subsurface-2e26de5ae6bd3300153be89de080d12f4c60cfcf.tar.gz |
Profile: improve tooltip animation
Remove a couple of expand() calls(?). Also store the last
expanded rectangle size in the private variable nextRectangle
and use that in collapse() animation. Patch prevents a small
jump/resize glitch if the user quickly hovers over and out
of the profile while the tooltip is still resizing.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index 48c88aaca..b6df52dec 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -54,6 +54,7 @@ private: Status status; QRectF rectangle; bool dragging; + QRectF nextRectangle; }; class EventItem : public QGraphicsPolygonItem |