diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-01-29 03:10:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-01-29 03:10:28 +0100 |
commit | 01210b7fba37356ee2c18420762eeeed52489d20 (patch) | |
tree | 9c2494842b9183d28b6b77ecf3b0d0760f05a922 /spline-widget/spline-widget.hpp | |
parent | 0ea648f8254ff49942e7f83d9034155b50498ac9 (diff) |
gui/mapping-window, spline-widget, logic/main-settings: limited mapping range
Diffstat (limited to 'spline-widget/spline-widget.hpp')
-rw-r--r-- | spline-widget/spline-widget.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spline-widget/spline-widget.hpp b/spline-widget/spline-widget.hpp index 921f44a2..4d5a7680 100644 --- a/spline-widget/spline-widget.hpp +++ b/spline-widget/spline-widget.hpp @@ -57,12 +57,13 @@ public: void set_snap(double x, double y) { snap_x = x; snap_y = y; } void get_snap(double& x, double& y) const { x = snap_x; y = snap_y; } +public slots: + void reload_spline(); protected slots: void paintEvent(QPaintEvent *e) override; void mousePressEvent(QMouseEvent *e) override; void mouseMoveEvent(QMouseEvent *e) override; void mouseReleaseEvent(QMouseEvent *e) override; - void reload_spline(); private: int get_closeness_limit(); void show_tooltip(const QPoint& pos, const QPointF& value = QPointF(0, 0)); |