diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-02 23:30:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-02 23:36:11 +0200 |
commit | f95bf9e927bf9a40f412265e020072d4e3acd6ef (patch) | |
tree | 59dfe15898080383aa18421fea16538dd69dc100 | |
parent | 50c1406c07365ce806811c63875cd361aadb97d0 (diff) |
Draw more precisely to remove zigzagging lines on spline widget
-rw-r--r-- | qfunctionconfigurator/functionconfig.h | 2 | ||||
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
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)); |