QmlProfiler: Fix compile on OSX

Change-Id: If875b290dcdd2974a7e28dcc37e068e775a986d7
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Christian Stenger
2014-12-12 12:26:14 +01:00
committed by Kai Koehne
parent 20396d7809
commit 49b1fd133a

View File

@@ -30,6 +30,7 @@
#include "timelineselectionrenderpass.h"
#include <QtMath>
#include <QSGSimpleRectNode>
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;