aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-01-11 13:31:58 +0100
committerUlf Hermann <ulf.hermann@qt.io>2018-01-16 09:02:57 +0000
commit77e28efad6bc5809c904edcae38b104cc2b6a620 (patch)
tree9744dae0e79cbdf929c8553a8cf6d79dbd87b69f /tests
parenta4c318d5e12677395a6e4b59767f2d1300dcd6e9 (diff)
Timeline: Use some better number types
The scale parameters are converted to single precision float anyway as soon as we do something with them. We might as well change all the methods to be single precision, too. The min/max row values should really be 64bit as 32bit values are not enough to express memory usage. Change-Id: I2b058b112286eabb1c077f7e746c48b6b99cb416 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/timeline/timelinerenderpass/tst_timelinerenderpass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/timeline/timelinerenderpass/tst_timelinerenderpass.cpp b/tests/auto/timeline/timelinerenderpass/tst_timelinerenderpass.cpp
index 383ceebd7d..2eec7bbefd 100644
--- a/tests/auto/timeline/timelinerenderpass/tst_timelinerenderpass.cpp
+++ b/tests/auto/timeline/timelinerenderpass/tst_timelinerenderpass.cpp
@@ -34,7 +34,7 @@ public:
static bool s_dtorRan;
State *update(const TimelineAbstractRenderer *renderer, const TimelineRenderState *parentState,
- State *state, int indexFrom, int indexTo, bool stateChanged, qreal spacing) const;
+ State *state, int indexFrom, int indexTo, bool stateChanged, float spacing) const;
~DummyRenderPass();
};
@@ -43,7 +43,7 @@ bool DummyRenderPass::s_dtorRan = false;
TimelineRenderPass::State *DummyRenderPass::update(const TimelineAbstractRenderer *renderer,
const TimelineRenderState *parentState,
State *state, int indexFrom, int indexTo,
- bool stateChanged, qreal spacing) const
+ bool stateChanged, float spacing) const
{
Q_UNUSED(renderer);
Q_UNUSED(parentState);