diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-11-25 12:19:18 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-11-25 14:22:32 +0200 |
commit | e029d0ea1d486dd3dbbfa4519a2125da202f22e4 (patch) | |
tree | fc9f87f637a9adcca5a555355d96717d43eddc77 /examples/surface/surfacegraph.h | |
parent | e7e01ec065d3874d28e9e28d213783c4275d8813 (diff) |
Change qreals to floats
+ Fix default axes to sensible
+ Fix some rounding errors in surface creation
Task-number: QTRD-2622
Change-Id: I44450efc1e77ac8d8dbefc75814345949b8fb1f1
Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'examples/surface/surfacegraph.h')
-rw-r--r-- | examples/surface/surfacegraph.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/surface/surfacegraph.h b/examples/surface/surfacegraph.h index 92b06e54..ecdec672 100644 --- a/examples/surface/surfacegraph.h +++ b/examples/surface/surfacegraph.h @@ -73,15 +73,15 @@ private: QSlider *m_axisMaxSliderX; QSlider *m_axisMinSliderZ; QSlider *m_axisMaxSliderZ; - qreal m_rangeMinX; - qreal m_rangeMinZ; - qreal m_stepX; - qreal m_stepZ; + float m_rangeMinX; + float m_rangeMinZ; + float m_stepX; + float m_stepZ; int m_heightMapWidth; int m_heightMapHeight; - void setAxisXRange(qreal min, qreal max); - void setAxisZRange(qreal min, qreal max); + void setAxisXRange(float min, float max); + void setAxisZRange(float min, float max); void fillSqrtSinProxy(); }; |