diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-13 21:15:11 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-20 08:47:18 +0100 |
commit | b1c0d424081530161c1637a1a24ff07a4b021097 (patch) | |
tree | 6db7322173e4ffd183534cc409e61ee6ed0ea3c8 /qt-models/filterconstraintmodel.cpp | |
parent | e1c0cace95d6ed19dff37a524c7f4b2288d258d7 (diff) | |
download | subsurface-b1c0d424081530161c1637a1a24ff07a4b021097.tar.gz |
statistics: remember position of legend when resizing
The position of the legend was reset when resizing. This was
OK as long as the legend wasn't movable.
To avoid resetting the position, store the center position
of the legend relatively to the size of the canvas. On
resize restore the center to the same relative size.
To avoid code duplication, move the sanitizing of the
coordinates from the StatsView to the Legend.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/filterconstraintmodel.cpp')
0 files changed, 0 insertions, 0 deletions