summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/functionconfig.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-24 13:46:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-24 13:46:21 +0200
commite55389fb2a43cd7cc2f1db95bc04a1d1eb789fa9 (patch)
treee2c6dac7c0f584e30e1721969f4720275980deea /qfunctionconfigurator/functionconfig.h
parent3c4d10ead91f54fcaa52267aa7f8d81a09336e2a (diff)
qfc: allow max range as floating point
affects accela
Diffstat (limited to 'qfunctionconfigurator/functionconfig.h')
-rw-r--r--qfunctionconfigurator/functionconfig.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/qfunctionconfigurator/functionconfig.h b/qfunctionconfigurator/functionconfig.h
index f7930cb2..7ead2c5d 100644
--- a/qfunctionconfigurator/functionconfig.h
+++ b/qfunctionconfigurator/functionconfig.h
@@ -32,15 +32,15 @@ private:
MyMutex _mutex;
QPointF last_input_value;
volatile bool activep;
- int max_x;
- int max_y;
+ double max_x;
+ double max_y;
State cur, saved;
public:
- int maxInput() const { return max_x; }
- int maxOutput() const { return max_y; }
+ double maxInput() const { return max_x; }
+ double maxOutput() const { return max_y; }
Map();
- Map(int maxx, int maxy)
+ Map(double maxx, double maxy)
{
setMaxInput(maxx);
setMaxOutput(maxy);
@@ -58,10 +58,10 @@ public:
void addPoint(QPointF pt);
void movePoint(int idx, QPointF pt);
const QList<QPointF> getPoints();
- void setMaxInput(int MaxInput) {
+ void setMaxInput(double MaxInput) {
max_x = MaxInput;
}
- void setMaxOutput(int MaxOutput) {
+ void setMaxOutput(double MaxOutput) {
max_y = MaxOutput;
}