~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/qmlprofiler/qml/SelectionRange.qml

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
**
28
28
****************************************************************************/
29
29
 
30
 
import QtQuick 1.0
 
30
import QtQuick 2.1
31
31
 
32
32
Rectangle {
33
33
    id: selectionRange
47
47
    property string endTimeString: detailedPrintTime(startTime+duration)
48
48
    property string durationString: detailedPrintTime(duration)
49
49
 
50
 
    property variant startTime: x * selectionRange.viewTimePerPixel + qmlProfilerDataModel.traceStartTime()
51
 
    property variant duration: width * selectionRange.viewTimePerPixel
52
 
    property variant viewTimePerPixel: 1
53
 
    property variant creationState : 0
 
50
    property real startTime: x * selectionRange.viewTimePerPixel + qmlProfilerModelProxy.traceStartTime()
 
51
    property real duration: width * selectionRange.viewTimePerPixel
 
52
    property real viewTimePerPixel: 1
 
53
    property int creationState : 0
54
54
 
55
 
    property variant x1
56
 
    property variant x2
57
 
    property variant x3: Math.min(x1, x2)
58
 
    property variant x4: Math.max(x1, x2)
 
55
    property real x1
 
56
    property real x2
 
57
    property real x3: Math.min(x1, x2)
 
58
    property real x4: Math.max(x1, x2)
59
59
 
60
60
    property bool isDragging: false
61
61