summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/data/barrenderitem_p.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-11-25 12:19:18 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-11-25 14:22:32 +0200
commite029d0ea1d486dd3dbbfa4519a2125da202f22e4 (patch)
treefc9f87f637a9adcca5a555355d96717d43eddc77 /src/datavisualization/data/barrenderitem_p.h
parente7e01ec065d3874d28e9e28d213783c4275d8813 (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 'src/datavisualization/data/barrenderitem_p.h')
-rw-r--r--src/datavisualization/data/barrenderitem_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datavisualization/data/barrenderitem_p.h b/src/datavisualization/data/barrenderitem_p.h
index 6cd2b0fa..a837ff2c 100644
--- a/src/datavisualization/data/barrenderitem_p.h
+++ b/src/datavisualization/data/barrenderitem_p.h
@@ -47,8 +47,8 @@ public:
inline const QPoint &position() const { return m_position; }
// Actual cached data value of the bar (needed to trigger label reformats)
- inline void setValue(qreal value);
- inline qreal value() const { return m_value; }
+ inline void setValue(float value);
+ inline float value() const { return m_value; }
// Normalized bar height
inline void setHeight(GLfloat height) { m_height = height; }
@@ -62,7 +62,7 @@ public:
QString &sliceLabel(); // Formats label if not previously formatted
protected:
- qreal m_value;
+ float m_value;
QPoint m_position; // x = row, y = column
GLfloat m_height;
QString m_sliceLabel;
@@ -71,7 +71,7 @@ protected:
friend class QBarDataItem;
};
-void BarRenderItem::setValue(qreal value)
+void BarRenderItem::setValue(float value)
{
m_value = value;
// Force reformatting on next access by setting label string to null string