mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
3b07cd204b
commit
2e26de5ae6
2 changed files with 2 additions and 5 deletions
|
@ -54,6 +54,7 @@ private:
|
|||
Status status;
|
||||
QRectF rectangle;
|
||||
bool dragging;
|
||||
QRectF nextRectangle;
|
||||
};
|
||||
|
||||
class EventItem : public QGraphicsPolygonItem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue