diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 17:11:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 17:19:20 +0200 |
commit | d7f71f721449853efa88479035c7139898a2a6a5 (patch) | |
tree | e5716dd10ef2ce8f95a046383dcd38c69d41c367 /spline-widget/functionconfig.h | |
parent | b008aefee41a21b24f1d2f1f23cd6c78b888ede5 (diff) |
spline-widget: don't use `double' when not needed
Diffstat (limited to 'spline-widget/functionconfig.h')
-rw-r--r-- | spline-widget/functionconfig.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spline-widget/functionconfig.h b/spline-widget/functionconfig.h index 4db24b84..9bf1671b 100644 --- a/spline-widget/functionconfig.h +++ b/spline-widget/functionconfig.h @@ -39,15 +39,15 @@ private: MyMutex _mutex; QPointF last_input_value; - double max_x; - double max_y; + float max_x; + float max_y; volatile bool activep; State cur, saved; public: - double maxInput() const; - double maxOutput() const; + float maxInput() const; + float maxOutput() const; Map(); - Map(double maxx, double maxy); + Map(float maxx, float 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(double MaxInput); - void setMaxOutput(double MaxOutput); + void setMaxInput(float MaxInput); + void setMaxOutput(float MaxOutput); void saveSettings(QSettings& settings, const QString& title); void loadSettings(QSettings& settings, const QString& title); |