diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-13 13:23:41 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-20 08:47:18 +0100 |
commit | 1a869833d8896b01d04b49a58e08914658e038e9 (patch) | |
tree | 0fb2db90753afb79d7fdf45c27395107611b25d0 /stats/legend.h | |
parent | 2b961414d7a52d442f5ecd8c2e42e43d044d0d5e (diff) | |
download | subsurface-1a869833d8896b01d04b49a58e08914658e038e9.tar.gz |
statistics: implement moving of legend
Catch mouse move events and move the legend accordingly.
Currently, this is the only item that can be dragged and
therefore there is no need of doing some kind of fancy
interface. Simply keep a pointer to the legend if it is
dragged.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/legend.h')
-rw-r--r-- | stats/legend.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/stats/legend.h b/stats/legend.h index a9d42bf39..1e38f705a 100644 --- a/stats/legend.h +++ b/stats/legend.h @@ -14,7 +14,6 @@ class QFontMetrics; class Legend : public ChartRectItem { public: Legend(StatsView &view, const std::vector<QString> &names); - void hover(QPointF pos); void resize(); // called when the chart size changes. private: // Each entry is a text besides a rectangle showing the color |