From f95bf9e927bf9a40f412265e020072d4e3acd6ef Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 2 Apr 2013 23:30:13 +0200 Subject: Draw more precisely to remove zigzagging lines on spline widget --- qfunctionconfigurator/functionconfig.h | 2 +- qfunctionconfigurator/qfunctionconfigurator.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'qfunctionconfigurator') diff --git a/qfunctionconfigurator/functionconfig.h b/qfunctionconfigurator/functionconfig.h index 281007d6..d81711a7 100644 --- a/qfunctionconfigurator/functionconfig.h +++ b/qfunctionconfigurator/functionconfig.h @@ -16,7 +16,7 @@ #ifndef FUNCTION_CONFIG_H #define FUNCTION_CONFIG_H -#define MEMOIZE_PRECISION 400 +#define MEMOIZE_PRECISION 500 class FTNOIR_TRACKER_BASE_EXPORT FunctionConfig { private: diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index e143a536..5720ad23 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -280,12 +280,12 @@ QPointF currentPoint; } - QPen pen(colBezier, 1.5, Qt::SolidLine); + QPen pen(colBezier, 1.2, Qt::SolidLine); prevPoint = graphicalizePoint( QPointF(0,0), "drawFunction lines" ); // Start at the Axis double max = maxInputEGU(); QPointF prev = graphicalizePoint(QPointF(0, 0)); - double step = 1 / (double) pixPerEGU_Input(); + double step = 1e-1 / (double) pixPerEGU_Input(); for (double i = 0; i < max; i += step) { double val = _config->getValue(i); QPointF cur = graphicalizePoint(QPointF(i, val)); -- cgit v1.2.3