diff --git a/src/plugins/qmlprofiler/timelineselectionrenderpass.cpp b/src/plugins/qmlprofiler/timelineselectionrenderpass.cpp index 98fb3704204..1665c35b0d3 100644 --- a/src/plugins/qmlprofiler/timelineselectionrenderpass.cpp +++ b/src/plugins/qmlprofiler/timelineselectionrenderpass.cpp @@ -30,6 +30,7 @@ #include "timelineselectionrenderpass.h" +#include #include namespace QmlProfiler { @@ -90,8 +91,8 @@ TimelineRenderPass::State *TimelineSelectionRenderPass::update(const TimelineRen // left and width the error on the left border is inherited by the right border. Like this // they're independent. - QRectF outer(QPointF(floor(left * parentState->scale()), top), - QPointF(ceil(right * parentState->scale()), top + height)); + QRectF outer(QPointF(qFloor(left * parentState->scale()), top), + QPointF(qCeil(right * parentState->scale()), top + height)); float scaleConversion = parentState->scale() / spacing; float missing = 3.0 - outer.width() / scaleConversion;