forked from qt-creator/qt-creator
QmlProfiler: Fix compile on OSX
Change-Id: If875b290dcdd2974a7e28dcc37e068e775a986d7 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
committed by
Kai Koehne
parent
20396d7809
commit
49b1fd133a
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "timelineselectionrenderpass.h"
|
#include "timelineselectionrenderpass.h"
|
||||||
|
#include <QtMath>
|
||||||
#include <QSGSimpleRectNode>
|
#include <QSGSimpleRectNode>
|
||||||
|
|
||||||
namespace QmlProfiler {
|
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
|
// left and width the error on the left border is inherited by the right border. Like this
|
||||||
// they're independent.
|
// they're independent.
|
||||||
|
|
||||||
QRectF outer(QPointF(floor(left * parentState->scale()), top),
|
QRectF outer(QPointF(qFloor(left * parentState->scale()), top),
|
||||||
QPointF(ceil(right * parentState->scale()), top + height));
|
QPointF(qCeil(right * parentState->scale()), top + height));
|
||||||
|
|
||||||
float scaleConversion = parentState->scale() / spacing;
|
float scaleConversion = parentState->scale() / spacing;
|
||||||
float missing = 3.0 - outer.width() / scaleConversion;
|
float missing = 3.0 - outer.width() / scaleConversion;
|
||||||
|
|||||||
Reference in New Issue
Block a user