summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/functionconfig.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-08 12:57:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-09 10:49:54 +0200
commita062b1f83fac7976fc2d444ee0b49ff1d06b42e6 (patch)
tree1ba8a830b6ef84ce7250caddbc99043e93030d96 /spline-widget/functionconfig.h
parent10a469b7adc6bec2ef8c0a043e789bf60e959168 (diff)
spline-widget: fix float <-> double promote/demote
Diffstat (limited to 'spline-widget/functionconfig.h')
-rw-r--r--spline-widget/functionconfig.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/spline-widget/functionconfig.h b/spline-widget/functionconfig.h
index ced6934a..6c039831 100644
--- a/spline-widget/functionconfig.h
+++ b/spline-widget/functionconfig.h
@@ -39,15 +39,15 @@ private:
MyMutex _mutex;
QPointF last_input_value;
- float max_x;
- float max_y;
+ qreal max_x;
+ qreal max_y;
volatile bool activep;
State cur, saved;
public:
- float maxInput() const;
- float maxOutput() const;
+ qreal maxInput() const;
+ qreal maxOutput() const;
Map();
- Map(float maxx, float maxy);
+ Map(qreal maxx, qreal maxy);
float getValue(float x);
bool getLastPoint(QPointF& point);
@@ -57,8 +57,8 @@ public:
void addPoint(QPointF pt);
void movePoint(int idx, QPointF pt);
const QList<QPointF> getPoints();
- void setMaxInput(float MaxInput);
- void setMaxOutput(float MaxOutput);
+ void setMaxInput(qreal MaxInput);
+ void setMaxOutput(qreal MaxOutput);
void saveSettings(QSettings& settings, const QString& title);
void loadSettings(QSettings& settings, const QString& title);