Commit cc1bedf5 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Increase accuracy of various data types



This prevents some overflows when zooming into the timeline.

Task-number: QTCREATORBUG-11879
Change-Id: I968c4737af8c64798d196a1463268d86146864e7
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 648989da
......@@ -39,8 +39,8 @@ Canvas {
// ***** properties
height: 50
property bool dataReady: false
property real startTime : 0
property real endTime : 0
property double startTime : 0
property double endTime : 0
// ***** functions
function clear()
......
......@@ -183,7 +183,7 @@ Rectangle {
MouseArea {
id: dragArea
property int origWidth: 0
property double origWidth: 0
anchors.fill: selectedRange
drag.target: leftRange
......
......@@ -38,11 +38,11 @@ RangeMover {
property string endTimeString: detailedPrintTime(startTime+duration)
property string durationString: detailedPrintTime(duration)
property real startTime: getLeft() * viewTimePerPixel + qmlProfilerModelProxy.traceStartTime()
property real duration: Math.max(getWidth() * viewTimePerPixel, 500)
property real viewTimePerPixel: 1
property double startTime: getLeft() * viewTimePerPixel + qmlProfilerModelProxy.traceStartTime()
property double duration: Math.max(getWidth() * viewTimePerPixel, 500)
property double viewTimePerPixel: 1
property double creationReference : 0
property int creationState : 0
property int creationReference : 0
Connections {
target: zoomControl
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment