forked from qt-creator/qt-creator
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: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user