diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 10:56:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 10:57:53 +0200 |
commit | ce7965303dec1500389fb688c1161f43624a1918 (patch) | |
tree | c24c4f802a343930aa269eaa6338b12f1f7151a1 /qfunctionconfigurator/qfunctionconfigurator.h | |
parent | c648c6a6851c567fb461e7b82e3521459dbfd62d (diff) |
qfc: disallow placing new points if too close to existing ones
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.h')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.h b/qfunctionconfigurator/qfunctionconfigurator.h index 5b75d84d..59c8ffeb 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.h +++ b/qfunctionconfigurator/qfunctionconfigurator.h @@ -49,6 +49,7 @@ protected: void resizeEvent(QResizeEvent *) override; private: void update_range(); + static constexpr int point_closeness_limit = 12; QPointF pixel_coord_to_point (const QPointF& point); QPointF point_to_pixel (const QPointF& point); |