summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-26 09:27:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-29 11:58:46 +0100
commitc1ec8841f10bc647f9d27adb19f81c67f2b805fb (patch)
tree8b92793d4dc3219eaee432c469557a9de305dc6b
parentfdf6585e61e7e76abee0ddf5bd02db79885d42ec (diff)
fixup! qfc: use euclidean distance to point
Don't use rectangle bounding box for circles
-rw-r--r--spline-widget/qfunctionconfigurator.cpp2
-rw-r--r--spline-widget/qfunctionconfigurator.h1
2 files changed, 1 insertions, 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 <cmath>
#include <algorithm>
-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);