diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 11:26:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 11:26:13 +0200 |
commit | de900bb1159af9f85d6f874925648844566363e3 (patch) | |
tree | 01131089850a8d6a17bb57f3b73183a76676b9de /qfunctionconfigurator/functionconfig.h | |
parent | f54f96a67572d770d3eceb33d5df18f0b64016ce (diff) |
qfc: reload spline data lazily
Diffstat (limited to 'qfunctionconfigurator/functionconfig.h')
-rw-r--r-- | qfunctionconfigurator/functionconfig.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qfunctionconfigurator/functionconfig.h b/qfunctionconfigurator/functionconfig.h index 68ec2869..74e20cf0 100644 --- a/qfunctionconfigurator/functionconfig.h +++ b/qfunctionconfigurator/functionconfig.h @@ -40,6 +40,7 @@ private: double max_y; State cur, saved; + bool lazy_reload; public: double maxInput() const { return max_x; } double maxOutput() const { return max_y; } @@ -48,7 +49,7 @@ public: { setMaxInput(maxx); setMaxOutput(maxy); - reload(); + lazy_reload = true; } num getValue(num x); @@ -57,7 +58,7 @@ public: void removeAllPoints() { QMutexLocker foo(&_mutex); cur.input.clear(); - reload(); + lazy_reload = true; } void addPoint(QPointF pt); |