summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/functionconfig.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-07 21:28:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-07 21:36:51 +0200
commit790a9cff9a25def2370186e2a56ed30fbdbf0195 (patch)
tree781db9eb1becd938b92f2ebd38daeabbe664f9b3 /qfunctionconfigurator/functionconfig.h
parent7233ba88c0cd55eeddc4453c612a7cce0a7d2da9 (diff)
qfc: no need to load lazily, it's received immediately
Diffstat (limited to 'qfunctionconfigurator/functionconfig.h')
-rw-r--r--qfunctionconfigurator/functionconfig.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/qfunctionconfigurator/functionconfig.h b/qfunctionconfigurator/functionconfig.h
index 25e072d2..31aebdf6 100644
--- a/qfunctionconfigurator/functionconfig.h
+++ b/qfunctionconfigurator/functionconfig.h
@@ -37,7 +37,6 @@ private:
double max_y;
State cur, saved;
- bool lazy_reload;
public:
double maxInput() const { return max_x; }
double maxOutput() const { return max_y; }
@@ -46,7 +45,7 @@ public:
{
setMaxInput(maxx);
setMaxOutput(maxy);
- lazy_reload = true;
+ reload();
}
float getValue(float x);
@@ -55,7 +54,7 @@ public:
void removeAllPoints() {
QMutexLocker foo(&_mutex);
cur.input.clear();
- lazy_reload = true;
+ reload();
}
void addPoint(QPointF pt);