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>
This commit is contained in:
Lubomir I. Ivanov 2013-07-05 15:33:50 +03:00 committed by Dirk Hohndel
parent 3b07cd204b
commit 2e26de5ae6
2 changed files with 2 additions and 5 deletions

View file

@ -54,6 +54,7 @@ private:
Status status;
QRectF rectangle;
bool dragging;
QRectF nextRectangle;
};
class EventItem : public QGraphicsPolygonItem