summaryrefslogtreecommitdiffstats
path: root/src/render/backend/levelofdetail_p.h
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2017-02-15 10:33:28 +0000
committerSean Harmer <sean.harmer@kdab.com>2017-02-16 10:29:27 +0000
commit5bceaee38908934078bbdb62b564daa68f7e182b (patch)
tree6b36e4c2d530b65676b241504210c195aa95ac44 /src/render/backend/levelofdetail_p.h
parent9dd10069ad84a7d51bb890d78f7f5e1e79b94906 (diff)
Use QVector<float> in level of detail APIs
For consistency with rest of API and to avoid ambiguity inherent with qreal. Task-number: QTBUG-58888 Task-number: QTBUG-58889 Change-Id: Ib8729a11152165caf05ecea63f9e10c4d90689db Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/render/backend/levelofdetail_p.h')
-rw-r--r--src/render/backend/levelofdetail_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/backend/levelofdetail_p.h b/src/render/backend/levelofdetail_p.h
index 83809a631..c8d065883 100644
--- a/src/render/backend/levelofdetail_p.h
+++ b/src/render/backend/levelofdetail_p.h
@@ -78,7 +78,7 @@ public:
Qt3DCore::QNodeId camera() const { return m_camera; }
int currentIndex() const { return m_currentIndex; }
QLevelOfDetail::ThresholdType thresholdType() const { return m_thresholdType; }
- QVector<qreal> thresholds() const { return m_thresholds; }
+ QVector<float> thresholds() const { return m_thresholds; }
float radius() const { return m_radius; }
QVector3D center() const { return m_center; }
@@ -89,7 +89,7 @@ private:
Qt3DCore::QNodeId m_camera;
int m_currentIndex;
QLevelOfDetail::ThresholdType m_thresholdType;
- QVector<qreal> m_thresholds;
+ QVector<float> m_thresholds;
float m_radius;
QVector3D m_center;
};