From c1ec8841f10bc647f9d27adb19f81c67f2b805fb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 26 Nov 2015 09:27:47 +0100 Subject: fixup! qfc: use euclidean distance to point Don't use rectangle bounding box for circles --- spline-widget/qfunctionconfigurator.cpp | 2 -- spline-widget/qfunctionconfigurator.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spline-widget/qfunctionconfigurator.cpp b/spline-widget/qfunctionconfigurator.cpp index 3df9fc9c..8a5bda4d 100644 --- a/spline-widget/qfunctionconfigurator.cpp +++ b/spline-widget/qfunctionconfigurator.cpp @@ -15,8 +15,6 @@ using namespace options; #include #include -static const int pointSize = 5; - QFunctionConfigurator::QFunctionConfigurator(QWidget *parent) : QWidget(parent), _config(nullptr), diff --git a/spline-widget/qfunctionconfigurator.h b/spline-widget/qfunctionconfigurator.h index d4ba904a..ce8208a8 100644 --- a/spline-widget/qfunctionconfigurator.h +++ b/spline-widget/qfunctionconfigurator.h @@ -19,6 +19,7 @@ class SPLINE_WIDGET_EXPORT QFunctionConfigurator : public QWidget { Q_OBJECT Q_PROPERTY(QColor colorBezier READ colorBezier WRITE setColorBezier) + enum { pointSize = 5 }; public: QFunctionConfigurator(QWidget *parent = 0); -- cgit v1.2.3